From 9ce92521c1f2c6bec862a4e09926c6cca750d9d2 Mon Sep 17 00:00:00 2001 From: J0an Josep Date: Mon, 14 Jan 2019 21:21:35 +0100 Subject: [PATCH] Fix: If screen size changes, windows are relocated and dropdown may not fit the screen. --- src/window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/window.cpp b/src/window.cpp index cc40afd348..2d03310337 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -3516,8 +3516,9 @@ void ChangeVehicleViewports(VehicleID from_index, VehicleID to_index) */ void RelocateAllWindows(int neww, int newh) { - Window *w; + DeleteWindowById(WC_DROPDOWN_MENU, 0); + Window *w; FOR_ALL_WINDOWS_FROM_BACK(w) { int left, top; /* XXX - this probably needs something more sane. For example specifying