Sizing and centering editbox icon.

This commit is contained in:
Juanjo
2013-09-26 11:50:14 +00:00
committed by pelya
parent fd9b7efa97
commit 0ae63b4c28
2 changed files with 3 additions and 3 deletions

View File

@@ -2135,7 +2135,7 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint16 data,
case WWT_EDITBOX: {
Dimension sprite_size = GetSpriteSize(_current_text_dir == TD_RTL ? SPR_IMG_DELETE_RIGHT : SPR_IMG_DELETE_LEFT);
this->SetMinimalSize(30 + sprite_size.width, sprite_size.height);
this->SetMinimalSize(30 + GetMinSizing(NWST_BUTTON, sprite_size.width), sprite_size.height);
this->SetFill(0, 0);
break;
}