diff --git a/Source/Editor/Windows/GameCookerWindow.cs b/Source/Editor/Windows/GameCookerWindow.cs index 75f0845c9..01cd8efae 100644 --- a/Source/Editor/Windows/GameCookerWindow.cs +++ b/Source/Editor/Windows/GameCookerWindow.cs @@ -817,11 +817,12 @@ namespace FlaxEditor.Windows BackgroundColor = Style.Current.LightBackground, Parent = tab, }; + platformSelector.SizeChanged += OnPlatformSelectorSizeChanged; var panel = new Panel(ScrollBars.Vertical) { AnchorPreset = AnchorPresets.StretchAll, Offsets = new Margin(0, 0, platformSelector.Offsets.Height, 0), - Parent = tab + Parent = tab, }; var settings = new CustomEditorPresenter(null); @@ -829,6 +830,12 @@ namespace FlaxEditor.Windows settings.Select(new BuildTabProxy(this, platformSelector)); } + private void OnPlatformSelectorSizeChanged(Control platformSelector) + { + var panel = platformSelector.Parent.Children[platformSelector.IndexInParent + 1]; + panel.Offsets = new Margin(0, 0, platformSelector.Offsets.Height, 0); + } + /// /// Load the build presets from the settings. ///