Skip to content

Commit fb8a24d

Browse files
committed
Fix F9 window turns black, selecting the last car of a large train.
1 parent 736c3f5 commit fb8a24d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/RunActivity/Viewer3D/Popups/TrainCarOperationsWindow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,9 @@ public FormationReversed(Viewer viewer, Train PlayerTrain)
800800
TrainCar.LabelTop = TrainCar.LabelPositionTop[TrainCar.SelectedCarPosition];
801801
Viewer.FrontCamera.IsCameraFront = Viewer.FrontCamera.AttachedCar != null;
802802
TrainCar.Layout();
803+
// Calculates the top car position visible
804+
TrainCar.LastRowVisible = false;
805+
TrainCar.topCarPositionVisible();
803806
TrainCar.localScrollLayout(TrainCar.SelectedCarPosition);
804807
TrainCar.updateLayoutSize();
805808

0 commit comments

Comments
 (0)