Skip to content
Permalink
Browse files

Stop train speed disappearing

  • Loading branch information...
icklesteve committed Jun 10, 2019
1 parent fac0bc2 commit a9c75169cbab1c1cfd27b6f42d1a6d114ee2961e
Showing with 2 additions and 1 deletion.
  1. +2 −1 java/src/jmri/jmrit/dispatcher/AutoTrainsFrame.java
@@ -189,12 +189,13 @@ private void updateStatusLabel(JLabel status, Object speed, Object forward) {
} else {
sb.append("(rev)");
}
//Only repack if the text size has increased.
// Pre 4.17.1 Only repacked if the text size has increased.
if (status.getText().length() < sb.toString().length()) {
status.setText(sb.toString());
autoTrainsFrame.pack();
} else {
status.setText(sb.toString());
autoTrainsFrame.pack();
}
}

0 comments on commit a9c7516

Please sign in to comment.
You can’t perform that action at this time.