summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-06-30 14:33:15 +0000
committerfrosch <frosch@openttd.org>2013-06-30 14:33:15 +0000
commit5f8f71edf069a7298fa2b435ca9ee63a625d778f (patch)
treec53dde1e3afde5a7c5c85d88094f5a71a5d5ba12 /src/newgrf_gui.cpp
parent98fdd20f84c5d1dc64b8b07dca533fc41be4d8e3 (diff)
downloadopenttd-5f8f71edf069a7298fa2b435ca9ee63a625d778f.tar.xz
(svn r25532) -Fix: Do not make the minimal size of matrix or panel widgets depend on their number of rows, since that changes when resizing the window.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index a1da67b23..37ed023b0 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -215,7 +215,7 @@ struct NewGRFParametersWindow : public Window {
resize->width = 1;
resize->height = this->line_height;
- size->height = GB(this->GetWidget<NWidgetCore>(widget)->widget_data, MAT_ROW_START, MAT_ROW_BITS) * this->line_height;
+ size->height = 5 * this->line_height;
break;
case WID_NP_DESCRIPTION: