Skip to content

Commit 9152d39

Browse files
committed
Fix for Firefox issue with phantom vertical scrollbar (when using treeview)
1 parent 8629400 commit 9152d39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/html/resize.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function initResizable(treeview) {
6666
}
6767
else
6868
{
69-
contentHeight = windowHeight - headerHeight - 1;
69+
contentHeight = windowHeight - headerHeight;
7070
}
7171
content.css({height:contentHeight + "px"});
7272
if (location.hash.slice(1)) {
@@ -139,6 +139,8 @@ function initResizable(treeview) {
139139
{
140140
$("#splitbar").bind("dragstart", _preventDefault).bind("selectstart", _preventDefault);
141141
$(".ui-resizable-handle").dblclick(collapseExpand);
142+
// workaround for firefox
143+
$("body").css({overflow: "hidden"});
142144
}
143145
$(window).on('load',function() { resizeHeight(treeview); });
144146
}

0 commit comments

Comments
 (0)