From 5b10bde9803812fbddd20081109c02b4b0120c55 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 24 Feb 2016 16:16:21 +0000 Subject: [PATCH] Trigger a resize to notify listeners of the change in size Fixes sidebox calendar is too small after expanding sidebar --- phpgwapi/js/framework/fw_ui.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/phpgwapi/js/framework/fw_ui.js b/phpgwapi/js/framework/fw_ui.js index 97f54dd5bb..9daab4777a 100644 --- a/phpgwapi/js/framework/fw_ui.js +++ b/phpgwapi/js/framework/fw_ui.js @@ -1271,8 +1271,12 @@ egw_fw_ui_toggleSidebar.prototype.onToggle = function(_callbackContext) if (this.contDiv.hasClass('egw_fw_sidebar_toggleOn')) { this.contDiv.removeClass('egw_fw_sidebar_toggleOn'); - _callbackContext.splitterUi.set_disable(false); + var splitter = _callbackContext.splitterUi; + splitter.set_disable(false); this.toggleCallback.call(_callbackContext,'off'); + window.setTimeout(function() { + $j(window).resize(); + },500); } else { @@ -1294,4 +1298,4 @@ egw_fw_ui_toggleSidebar.prototype.set_toggle = function (_state, _toggleCallback this.contDiv.toggleClass('egw_fw_sidebar_toggleOn',_state === 'on'?true:false); _context.splitterUi.set_disable(_state === 'on'?true:false); _toggleCallback.call(_context, _state); -}; \ No newline at end of file +};