We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8c07cf commit 6bc86feCopy full SHA for 6bc86fe
templates/html/resize.js
@@ -109,13 +109,17 @@ function initResizable()
109
110
function collapseExpand()
111
{
112
+ var newWidth;
113
if (sidenav.width()>0) {
- restoreWidth(0);
114
+ newWidth=0;
115
}
116
else {
117
var width = readSetting('width');
- if (width>$TREEVIEW_WIDTH && width<$(window).width()) { restoreWidth(width); } else { restoreWidth($TREEVIEW_WIDTH); }
118
+ newWidth = (width>$TREEVIEW_WIDTH && width<$(window).width()) ? width : $TREEVIEW_WIDTH;
119
120
+ restoreWidth(newWidth);
121
+ var sidenavWidth = $(sidenav).outerWidth();
122
+ writeSetting('width',sidenavWidth-barWidth);
123
124
125
header = $("#top");
0 commit comments