summaryrefslogtreecommitdiff
path: root/src/widgets/dropdown.cpp
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2021-04-05 18:43:12 +0100
committerPeterN <peter@fuzzle.org>2021-04-30 17:08:15 +0100
commit4791ff28627eabe6322352428dc1b42344f545b9 (patch)
tree4bd1a641a0f905f8ddc3a247fd5df73706d089f2 /src/widgets/dropdown.cpp
parent6fe5353da2a0d3d60f8375b28536213e67cd869c (diff)
downloadopenttd-4791ff28627eabe6322352428dc1b42344f545b9.tar.xz
Fix: Recalculate padding and minimum sizes when GUI or Font zoom is changed.
Diffstat (limited to 'src/widgets/dropdown.cpp')
-rw-r--r--src/widgets/dropdown.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp
index f5536f52f..8f4a8634e 100644
--- a/src/widgets/dropdown.cpp
+++ b/src/widgets/dropdown.cpp
@@ -153,7 +153,7 @@ struct DropdownWindow : Window {
uint items_width = size.width - (scroll ? NWidgetScrollbar::GetVerticalDimension().width : 0);
NWidgetCore *nwi = this->GetWidget<NWidgetCore>(WID_DM_ITEMS);
- nwi->SetMinimalSize(items_width, size.height + 4);
+ nwi->SetMinimalSizeAbsolute(items_width, size.height + 4);
nwi->colour = wi_colour;
nwi = this->GetWidget<NWidgetCore>(WID_DM_SCROLL);