1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 12:39:11 +00:00

Fix: Recalculate padding and minimum sizes when GUI or Font zoom is changed.

This commit is contained in:
2021-04-05 18:43:12 +01:00
committed by PeterN
parent 6fe5353da2
commit 4791ff2862
13 changed files with 129 additions and 28 deletions

View File

@@ -153,7 +153,7 @@ struct DropdownWindow : Window {
uint items_width = size.width - (scroll ? NWidgetScrollbar::GetVerticalDimension().width : 0);
NWidgetCore *nwi = this->GetWidget<NWidgetCore>(WID_DM_ITEMS);
nwi->SetMinimalSize(items_width, size.height + 4);
nwi->SetMinimalSizeAbsolute(items_width, size.height + 4);
nwi->colour = wi_colour;
nwi = this->GetWidget<NWidgetCore>(WID_DM_SCROLL);