[SSE] Scale to Fit (fix disabled)
This commit is contained in:
parent
6b993485e2
commit
fe4a450465
|
@ -399,6 +399,11 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
.dropdown-menu {
|
||||
li.disabled {
|
||||
opacity: 0.65;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@color-gray: @secondary;
|
||||
|
|
|
@ -1883,6 +1883,7 @@ define([
|
|||
if (this.toolbar.btnCustomScaleUp && this.toolbar.btnCustomScaleDown) {
|
||||
this.toolbar.btnCustomScaleUp.setDisabled(!(!width && !height));
|
||||
this.toolbar.btnCustomScaleDown.setDisabled(!(!width && !height));
|
||||
this.toolbar.mnuCustomScale.setDisabled(!(!width && !height));
|
||||
}
|
||||
this._state.scaleWidth = width;
|
||||
this._state.scaleHeight = height;
|
||||
|
@ -1891,6 +1892,7 @@ define([
|
|||
if (this.toolbar.btnCustomScaleUp && this.toolbar.btnCustomScaleDown) {
|
||||
this.toolbar.btnCustomScaleUp.setDisabled(!(!this._state.scaleWidth && !this._state.scaleHeight));
|
||||
this.toolbar.btnCustomScaleDown.setDisabled(!(!this._state.scaleWidth && !this._state.scaleHeight));
|
||||
this.toolbar.mnuCustomScale.setDisabled(!(!this._state.scaleWidth && !this._state.scaleHeight));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue