diff options
author | yexo <yexo@openttd.org> | 2010-08-06 20:52:53 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-08-06 20:52:53 +0000 |
commit | 0b4d80ae54e5e760701136fe816214f1add45289 (patch) | |
tree | 44c6afe29822a636f39614598b1c6791324568a7 | |
parent | 3536357cc6b1b80f8b578314142b7ed2fa276592 (diff) | |
download | openttd-0b4d80ae54e5e760701136fe816214f1add45289.tar.xz |
(svn r20394) -Fix [FS#4010]: make the default minimum width for editboxes 10 pixels
-rw-r--r-- | src/widget.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index 484f632ce..e8c03593f 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -1702,27 +1702,25 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint16 data, break; case WWT_PUSHBTN: - this->SetFill(0, 0); - break; - case WWT_IMGBTN: case WWT_PUSHIMGBTN: case WWT_IMGBTN_2: - this->SetFill(0, 0); - break; - case WWT_TEXTBTN: case WWT_PUSHTXTBTN: case WWT_TEXTBTN_2: case WWT_LABEL: case WWT_TEXT: case WWT_MATRIX: - case WWT_EDITBOX: case NWID_BUTTON_DROPDOWN: case NWID_BUTTON_ARROW: this->SetFill(0, 0); break; + case WWT_EDITBOX: + this->SetMinimalSize(10, 0); + this->SetFill(0, 0); + break; + case WWT_SCROLLBAR: case WWT_SCROLL2BAR: this->SetFill(0, 1); |