File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
browser/app/profile/features Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 22// License, v. 2.0. If a copy of the MPL was not distributed with this
33// file, You can obtain one at http://mozilla.org/MPL/2.0/.
44
5- pref (' zen.view.sidebar-height-throttle' , 200 ); // in ms
5+ pref (' zen.view.sidebar-height-throttle' , 0 ); // in ms
66pref (' zen.view.sidebar-expanded.max-width' , 500 );
77
88#ifdef XP_MACOSX
Original file line number Diff line number Diff line change @@ -215,8 +215,9 @@ var gZenCompactModeManager = {
215215 let sidebarWidth = this . sidebar . getBoundingClientRect ( ) . width ;
216216 const shouldRecalculate =
217217 this . preference || document . documentElement . hasAttribute ( 'zen-creating-workspace' ) ;
218+ const sidebarExpanded = document . documentElement . hasAttribute ( 'zen-sidebar-expanded' ) ;
218219 if ( sidebarWidth > 1 ) {
219- if ( shouldRecalculate && gZenVerticalTabsManager . _prefsSidebarExpanded ) {
220+ if ( shouldRecalculate && sidebarExpanded ) {
220221 sidebarWidth = Math . max ( sidebarWidth , 150 ) ;
221222 }
222223 // Second variable to get the genuine width of the sidebar
@@ -225,7 +226,7 @@ var gZenCompactModeManager = {
225226 if (
226227 event &&
227228 shouldRecalculate &&
228- gZenVerticalTabsManager . _prefsSidebarExpanded &&
229+ sidebarExpanded &&
229230 ! gZenVerticalTabsManager . _hadSidebarCollapse
230231 ) {
231232 return ;
Original file line number Diff line number Diff line change 170170 document . getElementById ( 'nav-bar' ) . style . visibility = 'collapse' ;
171171 }
172172 this . style . visibility = 'visible' ;
173+ gZenCompactModeManager . getAndApplySidebarWidth ( ) ;
173174 this . resolveInitialized ( ) ;
174175 gZenUIManager . motion
175176 . animate (
You can’t perform that action at this time.
0 commit comments