Skip to content

Commit f5db933

Browse files
committed
fix musicplayerlogic for lobby bounds
1 parent 13d5751 commit f5db933

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

OpenRA.Mods.Common/Widgets/Logic/MusicPlayerLogic.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,9 @@ void UpdateCustomLayout(bool forceRefresh)
561561

562562
var bounds = widget.Bounds;
563563

564-
var y = showCustomFilters ? baseY + CustomControlDownOffset : baseY;
564+
var shouldShiftControls = showCustomFilters && allowPanelResize;
565+
566+
var y = shouldShiftControls ? baseY + CustomControlDownOffset : baseY;
565567

566568
widget.Bounds = new WidgetBounds(bounds.X, y, bounds.Width, bounds.Height);
567569
}

0 commit comments

Comments
 (0)