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

This commit is contained in:
Peter Nelson
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

@@ -237,7 +237,7 @@ static void AddKey(NWidgetHorizontal *hor, int height, int num_half, WidgetType
hor->Add(spc);
}
NWidgetLeaf *leaf = new NWidgetLeaf(widtype, COLOUR_GREY, widnum, widdata, STR_NULL);
leaf->SetMinimalSize(ScaleGUITrad(key_width), height);
leaf->SetMinimalSizeAbsolute(ScaleGUITrad(key_width), height);
hor->Add(leaf);
}