Fixed text input widget too small and bottom bar too wide

This commit is contained in:
pelya
2016-04-02 23:39:41 +03:00
parent 5e54f92241
commit b74200f58f
2 changed files with 2 additions and 1 deletions

View File

@@ -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: {