Flash panel resizers when enabled

This commit is contained in:
Mo Bitar
2018-11-01 12:36:02 -05:00
parent cdb7413977
commit 518b364cdd
4 changed files with 42 additions and 5 deletions

View File

@@ -475,7 +475,8 @@ angular.module('app')
/* Resizability */
this.resizeControl = {};
this.leftResizeControl = {};
this.rightResizeControl = {};
this.onPanelResizeFinish = function(width, left, isMaxWidth) {
if(isMaxWidth) {
@@ -511,12 +512,12 @@ angular.module('app')
if(this.marginResizersEnabled) {
let width = authManager.getUserPrefValue("editorWidth", null);
if(width !== null) {
this.resizeControl.setWidth(width);
this.leftResizeControl.setWidth(width);
}
let left = authManager.getUserPrefValue("editorLeft", null);
if(left !== null) {
this.resizeControl.setLeft(left);
this.leftResizeControl.setLeft(left);
}
}
}
@@ -553,6 +554,11 @@ angular.module('app')
this.reloadFont();
})
}, 0)
} else if(key == "marginResizersEnabled" && this[key] == true) {
$timeout(() => {
this.leftResizeControl.flash();
this.rightResizeControl.flash();
})
}
}