summaryrefslogtreecommitdiff
path: root/src/widget.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-08-21 10:59:03 +0000
committerfrosch <frosch@openttd.org>2010-08-21 10:59:03 +0000
commit64d7b84c9f962b0dc2f6462b2f848113f8c64177 (patch)
treea7b4a1b63d85196f40e479dc8c2e8f815e065f12 /src/widget.cpp
parent284feb4236acf990b715551dfcdfd5b7a419f74a (diff)
downloadopenttd-64d7b84c9f962b0dc2f6462b2f848113f8c64177.tar.xz
(svn r20587) -Codechange (r20456)[FS#4035]: Revert to scrollbars without minimal size to simplify window setup.
Diffstat (limited to 'src/widget.cpp')
-rw-r--r--src/widget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 008a5b92a..4a1ce8507 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1644,14 +1644,14 @@ NWidgetScrollbar::NWidgetScrollbar(WidgetType tp, Colours colour, int index) : N
switch (this->type) {
case NWID_HSCROLLBAR:
- this->SetMinimalSize(30, WD_HSCROLLBAR_HEIGHT);
+ this->SetMinimalSize(0, WD_HSCROLLBAR_HEIGHT);
this->SetResize(1, 0);
this->SetFill(1, 0);
this->SetDataTip(0x0, STR_TOOLTIP_HSCROLL_BAR_SCROLLS_LIST);
break;
case NWID_VSCROLLBAR:
- this->SetMinimalSize(WD_VSCROLLBAR_WIDTH, 30);
+ this->SetMinimalSize(WD_VSCROLLBAR_WIDTH, 0);
this->SetResize(0, 1);
this->SetFill(0, 1);
this->SetDataTip(0x0, STR_TOOLTIP_VSCROLL_BAR_SCROLLS_LIST);