Use dynamic height in MakeDropdownButtonWidget

This commit is contained in:
Aaron van Geffen committed 2024-09-10 13:27:53 +02:00
1 parent 710fbfbf9a
commit 36bcb69458
1 file changed
+1 -1
+1 -1
View File
@@ -165,7 +165,7 @@ namespace OpenRCT2::Ui
const int16_t xPos = origin.x + size.width - 11;
const int16_t yPos = origin.y + 1;
const uint16_t width = 11;
const uint16_t height = 10;
const uint16_t height = size.height - 2;
return MakeWidget({ xPos, yPos }, { width, height }, WindowWidgetType::Button, colour, STR_DROPDOWN_GLYPH, tooltip);
}