mirror of https://github.com/OpenTTD/OpenTTD.git
Merge 4711fe2040
into ac6a945e26
This commit is contained in:
commit
a362b740bd
|
@ -1381,7 +1381,8 @@ public:
|
||||||
child_wid->current_x = child_wid->smallest_x;
|
child_wid->current_x = child_wid->smallest_x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_toolbar_width = nbuttons * this->smallest_x;
|
nbuttons--; // Exclude the switcher button which is not displayed when the toolbar fits the screen.
|
||||||
|
_toolbar_width = nbuttons * this->smallest_x + this->spacers * this->smallest_x / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AssignSizePosition(SizingType sizing, int x, int y, uint given_width, uint given_height, bool rtl) override
|
void AssignSizePosition(SizingType sizing, int x, int y, uint given_width, uint given_height, bool rtl) override
|
||||||
|
|
Loading…
Reference in New Issue