mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-25 07:44:38 +01:00
Fix #17187: Text input window does not resize correctly
window_set_resize() already invalidates, so no need to call it twice. Co-authored-by: guljam <guljam@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
60659f4a27
commit
3243183680
@@ -170,8 +170,7 @@ public:
|
||||
int32_t newHeight = CalculateWindowHeight(_buffer.data());
|
||||
if (newHeight != height)
|
||||
{
|
||||
Invalidate();
|
||||
window_set_resize(this, WW, height, WW, height);
|
||||
window_set_resize(this, WW, newHeight, WW, newHeight);
|
||||
}
|
||||
|
||||
widgets[WIDX_OKAY].top = newHeight - 22;
|
||||
|
||||
Reference in New Issue
Block a user