We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d23965 commit 5d7e692Copy full SHA for 5d7e692
Source/RunActivity/Viewer3D/Popups/TrainCarOperationsWindow.cs
@@ -495,6 +495,10 @@ void AddSpace()
495
Client = ControlLayoutScrollboxVertical.NewClient;
496
RowsCount = Client.Controls.Where(c => c is ControlLayoutHorizontal).Count();
497
SeparatorCount = Client.Controls.Where(c => c is Separator).Count();
498
+
499
+ // Allows to resize the window according to the carPosition value.
500
+ if (RowsCount > carPosition) RowsCount = carPosition;
501
+ if (SeparatorCount > carPosition -1) SeparatorCount = carPosition - 1;
502
}
503
504
return Vbox;
0 commit comments