Browse files

Same as last commit, but for IE6 & IE7

  • Loading branch information...
1 parent 698db1a commit 702deeb6eeb6cbb264f00a0e2771df9e02d5b008 @irae committed Jun 10, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 tooltip.visualize.jQuery.js
View
4 tooltip.visualize.jQuery.js
@@ -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';
@@ -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 = '';

0 comments on commit 702deeb

Please sign in to comment.