Skip to content

Commit 600ef26

Browse files
committed
Automatic merge of T1.5.1-1284-gca636331f4 and 14 pull requests
- Pull request #839 at d00beb9: First phase of https://blueprints.launchpad.net/or/+spec/additional-cruise-control-parameters - Pull request #891 at 9a1d6b2: Auto save - Pull request #892 at 1f5ba4c: Signal Function OPP_SIG_ID_TRAINPATH - Pull request #952 at 8347095: Investigation - Pulsing graphics - Pull request #953 at a519452: Fix Lights Crash on Corrupt Shapes - Pull request #954 at 62061b8: Multiple Track Profiles & Superelevation Improvements - Pull request #972 at e90a2aa: On Map window color changed switch or signal is not changed - Pull request #980 at e45f14f: Downloading route content (Github, zip) second part - Pull request #981 at 10d297f: Multiple type trainset lightglows - Pull request #982 at efcf19c: WEB based Switch Panel enhancement: Alerter - Pull request #984 at 0f8122e: Player train switching for timetable mode - Pull request #986 at 5d7e692: Fix: The TrainCarOperations window does not resize correctly. - Pull request #900 at c27f32d: DMI updates - Pull request #876 at f92de76: docs: add source for documents previously on website to source Documentation folder
16 parents fabc315 + ca63633 + d00beb9 + 9a1d6b2 + 1f5ba4c + 8347095 + a519452 + 62061b8 + e90a2aa + e45f14f + 10d297f + efcf19c + 0f8122e + 5d7e692 + c27f32d + f92de76 commit 600ef26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/RunActivity/Viewer3D/Popups/TrainCarOperationsWindow.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,10 @@ void AddSpace()
495495
Client = ControlLayoutScrollboxVertical.NewClient;
496496
RowsCount = Client.Controls.Where(c => c is ControlLayoutHorizontal).Count();
497497
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;
498502
}
499503
}
500504
return Vbox;

0 commit comments

Comments
 (0)