Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Fix for hidden overflow #113

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions jquery.scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@

c.on('scroll' + namespace, function (event) {
var scrollLeft = c.scrollLeft();
var scrollTop = c.scrollTop();
var scrollTop = c.scrollTop();

if (o.isRtl) {
// webkit 0:100
// ie/edge 100:0
Expand Down Expand Up @@ -618,10 +619,17 @@
"max-height": "none"
});
} else {
if ((browser.msedge || browser.msie) && container.css('overflow-x') === 'hidden') {
// do not add scroll.height if it is hidden
containerWrapper.css({
//"height": "auto", // do not reset height value: issue with height:100%!
"max-height": (AreaVisible + browser.scroll.height) + 'px'
"max-height": AreaVisible + 'px'
});
} else {
containerWrapper.css({
//"height": "auto", // do not reset height value: issue with height:100%!
"max-height": (AreaVisible + browser.scroll.height) + 'px'
});
}
}
}

Expand Down