Skip to content

Commit 2582f45

Browse files
authored
Add files via upload
1 parent a67e74f commit 2582f45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

B9PartSwitch/PartSwitch/PartSwitchFlightDialog.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ private static DialogGUIBase[] CreateOptions(ModuleB9PartSwitch module, IList<Ca
7878

7979
SwitcherSubtypeDescriptionGenerator subtypeDescriptionGenerator = new SwitcherSubtypeDescriptionGenerator(module);
8080

81+
options.Add(new DialogGUIContentSizer(ContentSizeFitter.FitMode.Unconstrained, ContentSizeFitter.FitMode.PreferredSize));
82+
8183
foreach (PartSubtype subtype in module.subtypes)
8284
{
8385
if (!subtype.IsUnlocked()) continue;
@@ -109,7 +111,6 @@ private static DialogGUIBase[] CreateOptions(ModuleB9PartSwitch module, IList<Ca
109111
const float buttonHeight = 35;
110112
if (buttonHeight * options.Count < 0.75f * Screen.height) return options.ToArray();
111113

112-
options.Insert(0, new DialogGUIContentSizer(ContentSizeFitter.FitMode.Unconstrained, ContentSizeFitter.FitMode.PreferredSize));
113114
DialogGUIBase[] scrollList = {
114115
new DialogGUIContentSizer(ContentSizeFitter.FitMode.Unconstrained, ContentSizeFitter.FitMode.PreferredSize),
115116
new DialogGUIScrollList(

0 commit comments

Comments
 (0)