Fixed text input widget too small and bottom bar too wide
This commit is contained in:
@@ -2312,6 +2312,7 @@ void NWidgetLeaf::SetupSmallestSize(Window *w, bool init_array)
|
||||
Dimension sprite_size = GetSpriteSize(_current_text_dir == TD_RTL ? SPR_IMG_DELETE_RIGHT : SPR_IMG_DELETE_LEFT);
|
||||
size.width = max(size.width, 30 + sprite_size.width);
|
||||
size.height = max(sprite_size.height, GetStringBoundingBox("_").height + WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM);
|
||||
size.height = GetMinSizing(NWST_BUTTON, size.height);
|
||||
/* FALL THROUGH */
|
||||
}
|
||||
case WWT_PUSHBTN: {
|
||||
|
||||
Reference in New Issue
Block a user