From 5f8f71edf069a7298fa2b435ca9ee63a625d778f Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 30 Jun 2013 14:33:15 +0000 Subject: (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. --- src/rail_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rail_gui.cpp') diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 03219e062..a3642e5c3 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -1037,7 +1037,7 @@ public: } size->width = max(size->width, d.width + padding.width); this->line_height = FONT_HEIGHT_NORMAL + WD_MATRIX_TOP + WD_MATRIX_BOTTOM; - size->height = GB(this->GetWidget(widget)->widget_data, MAT_ROW_START, MAT_ROW_BITS) * this->line_height; + size->height = 5 * this->line_height; resize->height = this->line_height; break; } -- cgit v1.2.3-54-g00ecf