fix timeline positions when the mainlist x positions isnt 0
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 22 Sep 2007 11:08:59 +0000 (11:08 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 22 Sep 2007 11:08:59 +0000 (11:08 +0000)
lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py

index 0edc468aa13d10ed43f92297f5e5946b6001ca06..45a5e218ecb00542093260772d67c18385923afd 100644 (file)
@@ -278,7 +278,8 @@ class EPGList(HTMLComponent, GUIComponent):
                self.findBestEvent()
 
        def getEventRect(self):
                self.findBestEvent()
 
        def getEventRect(self):
-               return self.event_rect
+               rc = self.event_rect
+               return Rect( rc.left() + (self.instance and self.instance.position().x() or 0), rc.top(), rc.width(), rc.height() )
 
        def getTimeEpoch(self):
                return self.time_epoch
 
        def getTimeEpoch(self):
                return self.time_epoch