Skip to content

Commit

Permalink
Same as last commit, but for IE6 & IE7
Browse files Browse the repository at this point in the history
  • Loading branch information
irae committed Jun 10, 2010
1 parent 698db1a commit 702deeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tooltip.visualize.jQuery.js
Expand Up @@ -75,7 +75,7 @@
if(o.tooltipalign == 'left' || ( o.tooltipalign=='auto' && x-scroller.scrollLeft()<=scrollerW/2 ) ) {
if($.browser.msie && ($.browser.version == 7 || $.browser.version == 6) ) {usescroll=false;} else {usescroll=true;}
left = x-(usescroll?scroller.scrollLeft():0);
if(left<0) {
if(x-scroller.scrollLeft()<0) { // even with when not using scroll we need to calc with it for IE
return;
}
left = left+'px';
Expand All @@ -85,7 +85,7 @@
} else {
if($.browser.msie && $.browser.version == 7) {usescroll=false;} else {usescroll=true;}
right = Math.abs(x-o.width)- (o.width-(usescroll?scroller.scrollLeft():0)-scrollerW);
if(right<0) {
if(Math.abs(x-o.width)- (o.width-scroller.scrollLeft()-scrollerW)<0) { // even with when not using scroll we need to calc with it for IE
return;
}
left = '';
Expand Down

0 comments on commit 702deeb

Please sign in to comment.