Fix: Recalculate padding and minimum sizes when GUI or Font zoom is changed.
(cherry picked from commit 4791ff2862
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
43a3a233df
commit
a469b4f395
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user