diff --git a/OpenRA.Mods.Common/Widgets/DropDownButtonWidget.cs b/OpenRA.Mods.Common/Widgets/DropDownButtonWidget.cs index 676cbd9912..fc8f70948c 100644 --- a/OpenRA.Mods.Common/Widgets/DropDownButtonWidget.cs +++ b/OpenRA.Mods.Common/Widgets/DropDownButtonWidget.cs @@ -101,9 +101,13 @@ namespace OpenRA.Mods.Common.Widgets panelRoot.AddChild(fullscreenMask); var oldBounds = panel.Bounds; + var panelY = RenderOrigin.Y + Bounds.Height - panelRoot.RenderOrigin.Y; + if (panelY + oldBounds.Height > Game.Renderer.Resolution.Height) + panelY -= (Bounds.Height + oldBounds.Height); + panel.Bounds = new Rectangle( RenderOrigin.X - panelRoot.RenderOrigin.X, - RenderOrigin.Y + Bounds.Height - panelRoot.RenderOrigin.Y, + panelY, oldBounds.Width, oldBounds.Height); panelRoot.AddChild(panel);