Commit 232ad158 authored by Rene AJM Veerman's avatar Rene AJM Veerman

vividScrollpane bugfix for large screens and zoomed-in browsers

parent 507bd04d
......@@ -955,7 +955,7 @@ seductiveapps.sp = seductiveapps.vividScrollpane = {
t = sa.vcc.getVividTheme (s.themeName),
item = s.items[0];
if (!item) return false; // is dialog, not scrollpane
if (!item) {debugger; return false}; // is dialog, not scrollpane
if (item.sliderbar) {
//if (item.sliderbar.style.display!='block') {
......@@ -1597,7 +1597,7 @@ seductiveapps.sp = seductiveapps.vividScrollpane = {
if ((s.containsIframe ? jQuery('iframe',scrollpane)[0].contentWindow.document.getElementsByTagName('body')[0].scrollWidth:(s.containsIframe ? jQuery('iframe',scrollpane)[0].contentWindow.document.getElementsByTagName('body')[0].scrollWidth:scrollpane.scrollWidth))=== 0) return false;
if (
(s.containsIframe ? jQuery('iframe',scrollpane)[0].contentWindow.document.getElementsByTagName('body')[0].scrollHeight : s.pos ? s.pos.height : scrollpane.scrollHeight) > scrollpaneContainer.offsetWidth + 60
(s.containsIframe ? jQuery('iframe',scrollpane)[0].contentWindow.document.getElementsByTagName('body')[0].scrollHeight : s.pos ? s.pos.height : scrollpane.scrollHeight) > scrollpaneContainer.offsetHeight + 60
&& !scrollpane.className.match('animatedOptions__noXbar')
&& scrollpane.offsetHeight > 100
......@@ -1617,6 +1617,7 @@ seductiveapps.sp = seductiveapps.vividScrollpane = {
sa.sp.log (10, 'resize(): scrollpane.id=='+scrollpane.id+' now hiding vertical scrollbar for scrollpane');
//sa.m.log (1, 't13.3 resize(): scrollpane.id='+scrollpane.id+', now hiding vertical scrollbar');
//jQuery(scrollpane).css({ width : scrollpaneContainer.offsetWidth});
debugger;
sa.sp.hideScrollbarVertical (scrollpane);
};
/*
......@@ -1659,7 +1660,7 @@ d && cih.offsetHeight > 100
jQuery(item.sliderbar).css({left : offsetLeft, top : offsetTop });
} else {
sa.sp.log (10, 'resize(): item.sliderbarShown==false, now showing vertical scrollbar for scrollpane');
sa.sp.log (10, 'resize(): item.sliderbarShown==true, now showing vertical scrollbar for scrollpane');
//sa.m.log (1, 't13.3 resize(): scrollpane.id='+scrollpane.id+', now showing vertical scrollbar');
sa.sp.renderScrollbarVertical(scrollpane);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment