GUI: Add ThemeLayoutTabWidget

This commit is contained in:
Alexander Tkachev 2016-06-24 23:26:25 +06:00 committed by Eugene Sandulenko
parent 24963ac97d
commit 0ae4409138
6 changed files with 58 additions and 13 deletions

View file

@ -51,10 +51,7 @@ void ScrollContainerWidget::init() {
void ScrollContainerWidget::recalc() {
int scrollbarWidth = g_gui.xmlEval()->getVar("Globals.Scrollbar.Width", 0);
//calculate _limitH - available height (boss's height - boss's "offset")
int d = _boss->getChildY() - _boss->getAbsY();
_limitH = _boss->getHeight() - d;
_limitH = _h;
//calculate virtual height
const int spacing = g_gui.xmlEval()->getVar("Global.Font.Height", 16); //on the bottom