1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Use dynamic height in MakeDropdownButtonWidget

This commit is contained in:
Aaron van Geffen
2024-09-10 13:27:53 +02:00
parent 710fbfbf9a
commit 36bcb69458

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);
}