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);
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)