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 2
2
// License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
4
5
- pref (' zen.view.sidebar-height-throttle' , 200 ); // in ms
5
+ pref (' zen.view.sidebar-height-throttle' , 0 ); // in ms
6
6
pref (' zen.view.sidebar-expanded.max-width' , 500 );
7
7
8
8
#ifdef XP_MACOSX
Original file line number Diff line number Diff line change @@ -215,8 +215,9 @@ var gZenCompactModeManager = {
215
215
let sidebarWidth = this . sidebar . getBoundingClientRect ( ) . width ;
216
216
const shouldRecalculate =
217
217
this . preference || document . documentElement . hasAttribute ( 'zen-creating-workspace' ) ;
218
+ const sidebarExpanded = document . documentElement . hasAttribute ( 'zen-sidebar-expanded' ) ;
218
219
if ( sidebarWidth > 1 ) {
219
- if ( shouldRecalculate && gZenVerticalTabsManager . _prefsSidebarExpanded ) {
220
+ if ( shouldRecalculate && sidebarExpanded ) {
220
221
sidebarWidth = Math . max ( sidebarWidth , 150 ) ;
221
222
}
222
223
// Second variable to get the genuine width of the sidebar
@@ -225,7 +226,7 @@ var gZenCompactModeManager = {
225
226
if (
226
227
event &&
227
228
shouldRecalculate &&
228
- gZenVerticalTabsManager . _prefsSidebarExpanded &&
229
+ sidebarExpanded &&
229
230
! gZenVerticalTabsManager . _hadSidebarCollapse
230
231
) {
231
232
return ;
Original file line number Diff line number Diff line change 170
170
document . getElementById ( 'nav-bar' ) . style . visibility = 'collapse' ;
171
171
}
172
172
this . style . visibility = 'visible' ;
173
+ gZenCompactModeManager . getAndApplySidebarWidth ( ) ;
173
174
this . resolveInitialized ( ) ;
174
175
gZenUIManager . motion
175
176
. animate (
You can’t perform that action at this time.
0 commit comments