]> git.vomp.tv Git - vompclient.git/commitdiff
*** empty log message ***
authorChris Tallon <chris@vomp.tv>
Sun, 4 Nov 2007 22:22:38 +0000 (22:22 +0000)
committerChris Tallon <chris@vomp.tv>
Sun, 4 Nov 2007 22:22:38 +0000 (22:22 +0000)
videowin.cc
wtabbar.cc

index 0d69fcd281efe653432f7ebcd3b541507ddacc5e..0115fa552194f82c1728fb208678710df1d3927b 100644 (file)
@@ -25,7 +25,6 @@
 #include "vdr.h"
 #include "osdwin.h"
 #include "audiowin.h"
-#include "vtabsviewman.h"
 #include "wwinvideofilter.h"
 #include "wtabbar.h"
 #include "i18n.h"
index 2a1b06bcbba53cb591eb6358f7723d841e92154b..b318287b1a2a6db431427e0c1ead63633877ae74 100644 (file)
@@ -35,7 +35,7 @@ WTabBar::WTabBar()
   symbolLeft.nextSymbol = WSymbol::LEFTARROW;
   add(&symbolLeft);
 
-  symbolRight.setPosition(getWidth() - 28, 4);
+  symbolRight.setPosition(0, 4); // will be reset in addtab
   symbolRight.nextColour = Colour::BUTTONBACKGROUND;
   symbolRight.nextSymbol = WSymbol::RIGHTARROW;
   add(&symbolRight);
@@ -90,6 +90,10 @@ void WTabBar::addTab(const char* name, Boxx* boxx)
     boxx->setVisible(false);
     symbolRight.nextColour = Colour::SELECTHIGHLIGHT;  // if this is the 2nd+ tab, ensure right arrow goes active
   }
+
+  // WTabbar doesn't know its width during the constructor
+  // So this is moved to here for now
+  symbolRight.setPosition(getWidth() - 28, 4);
 }
 
 int WTabBar::handleCommand(int command)