From 016cfc79efb2b68f3fe08e2f9e47dc04393b262d Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 3 Jun 2019 15:27:24 +0200 Subject: [PATCH] Revert reset width on sidebar active header --- api/js/framework/fw_ui.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/api/js/framework/fw_ui.js b/api/js/framework/fw_ui.js index 963d5314cb..bb885ce281 100644 --- a/api/js/framework/fw_ui.js +++ b/api/js/framework/fw_ui.js @@ -925,26 +925,16 @@ function egw_fw_ui_scrollarea(_contDiv) egw_fw_ui_scrollarea.prototype.setScrollPos = function(_pos) { - var $activeHeader = jQuery('.egw_fw_ui_sidemenu_entry_header_active'); if (this.buttonsVisible) { if (_pos <= 0) { - if (window.framework) jQuery(framework.sidemenuDiv).removeClass("egw_fw_ui_scrollarea_enabled"); _pos = 0; } else if (_pos >= this.maxScrollPos) { _pos = this.maxScrollPos; } - else - { - if (egw.preference('toggleSidebar',framework.activeApp.appName) != 'on') - { - $activeHeader.width($activeHeader.width()); - if (window.framework) jQuery(framework.sidemenuDiv).addClass("egw_fw_ui_scrollarea_enabled"); - } - } this.scrollPos = _pos;