From 980a5537d9986c6680cf6da2b04e4ea0f180a88b Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 25 Apr 2016 13:51:21 +0000 Subject: [PATCH] Fix sidebar toggle sometimes flickers in close states in FF --- api/js/framework/fw_desktop.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/js/framework/fw_desktop.js b/api/js/framework/fw_desktop.js index 9d01ebf1d0..0928eec5aa 100644 --- a/api/js/framework/fw_desktop.js +++ b/api/js/framework/fw_desktop.js @@ -264,7 +264,9 @@ if (_app == _app.parentFw.activeApp) { //Set the sidebox width if a application specific sidebox width is set - if (_app.sideboxWidth !== false) + // do not trigger resize if the sidebar is already in toggle on mode and + // the next set state is the same + if (_app.sideboxWidth !== false && egw.preference('toggleSidebar',_app.appName) == 'off') { this.sideboxSizeCallback(_app.sideboxWidth); this.splitterUi.constraints[0].size = _app.sideboxWidth;