File tree 1 file changed +2
-8
lines changed
apps/pdfeditor/main/app/view
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1130,10 +1130,7 @@ define([
1130
1130
this . chFit . setValue ( ! ! val , true ) ;
1131
1131
this . _state . Fit = val ;
1132
1132
}
1133
- this . chFit . setDisabled ( this . _state . Scale === AscPDF . Api . Types . scaleWhen . never || this . _state . DisabledControls ) ;
1134
- var disableSliders = this . _state . Scale === AscPDF . Api . Types . scaleWhen . always && ! this . _state . Fit || this . _state . DisabledControls ;
1135
- this . sldrPreviewPositionX . setDisabled ( disableSliders ) ;
1136
- this . sldrPreviewPositionY . setDisabled ( disableSliders ) ;
1133
+ this . cmbHowScale . setDisabled ( this . _state . Scale === AscPDF . Api . Types . scaleWhen . never || this . _state . DisabledControls ) ;
1137
1134
}
1138
1135
}
1139
1136
}
@@ -1278,10 +1275,7 @@ define([
1278
1275
this . spnCombChars . setDisabled ( ! isComb || this . _state . DisabledControls ) ;
1279
1276
this . chMaxChars . setDisabled ( isComb || this . _state . DisabledControls ) ;
1280
1277
this . spnMaxChars . setDisabled ( isComb || this . chMaxChars . getValue ( ) !== 'checked' || this . _state . DisabledControls ) ;
1281
- this . chFit . setDisabled ( this . _state . Scale === AscPDF . Api . Types . scaleWhen . never || this . _state . DisabledControls ) ;
1282
- var disableSliders = this . _state . Scale === AscPDF . Api . Types . scaleWhen . always && ! this . _state . Fit || this . _state . DisabledControls ;
1283
- this . sldrPreviewPositionX . setDisabled ( disableSliders ) ;
1284
- this . sldrPreviewPositionY . setDisabled ( disableSliders ) ;
1278
+ this . cmbHowScale . setDisabled ( this . _state . Scale === AscPDF . Api . Types . scaleWhen . never || this . _state . DisabledControls ) ;
1285
1279
} ,
1286
1280
1287
1281
showHideControls : function ( type , specProps ) {
You can’t perform that action at this time.
0 commit comments