[SSE] Scale to Fit (fix disabled)

This commit is contained in:
Julia Svinareva 2019-10-21 17:43:34 +03:00
parent 6b993485e2
commit fe4a450465
2 changed files with 7 additions and 0 deletions

View file

@ -399,6 +399,11 @@
}
}
}
.dropdown-menu {
li.disabled {
opacity: 0.65;
}
}
}
@color-gray: @secondary;

View file

@ -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));
}
}
}