changeset 15727:e7ce9e72e50f draft

(svn r20394) -Fix [FS#4010]: make the default minimum width for editboxes 10 pixels
author yexo <yexo@openttd.org>
date Fri, 06 Aug 2010 20:52:53 +0000
parents 88dadfb384f8
children 76b5a9024353
files src/widget.cpp
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1702,27 +1702,25 @@
 			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);