src/js/widgets/segmentsWidget.js
branchpopcorn-port
changeset 827 1dc2f85c3b89
parent 820 7968346b9689
child 829 ae16691d183d
--- a/src/js/widgets/segmentsWidget.js	Mon Mar 05 10:55:08 2012 +0100
+++ b/src/js/widgets/segmentsWidget.js	Mon Mar 05 17:34:48 2012 +0100
@@ -133,16 +133,9 @@
     (function(divTitle) { 
      return function(event) {
           IriSP.jQuery(this).animate({opacity: 0.6}, 5);
-          var offset = IriSP.jQuery(this).offset();
-          var correction = IriSP.jQuery(this).outerWidth() / 2;
+          var offset_x = IriSP.jQuery(this).position().left + IriSP.jQuery(this).outerWidth() / 2;
 
-          var offset_x = offset.left + correction - 106;
-          if (offset_x < 0)
-            offset_x = 0;
-          
-          var offset_y = offset.top;          
-
-          self.TooltipWidget.show(divTitle, color, offset_x, offset_y - 160);
+          self.TooltipWidget.show(divTitle, color, offset_x, 0);
     } })(divTitle)).mouseout(function(){
       IriSP.jQuery(this).animate({opacity: 0.3}, 5);
       self.TooltipWidget.hide();