Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
fixes for timer area height sometimes not being sized correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
gered committed Mar 21, 2016
1 parent ce89b7a commit bd185d1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/main/java/org/fenix/llanfair/Llanfair.java
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,14 @@ private static void dumpLocalization() {
String property = event.getPropertyName();

if ( Run.STATE_PROPERTY.equals( property ) ) {
MenuItem.setActiveState( run.getState() );
MenuItem.setActiveState(run.getState());
//forceInternalComponentsResize();
} else if (Run.NAME_PROPERTY.equals(property)) {
forceInternalComponentsResize();
} else if (Run.SUBTITLE_PROPERTY.equals(property)) {
forceInternalComponentsResize();
} else if (Settings.headerShowAttempts.equals(property)) {
forceInternalComponentsResize();
} else if ( Settings.alwaysOnTop.equals( property ) ) {
setAlwaysOnTop( Settings.alwaysOnTop.get() );
} else if (Settings.historyRowCount.equals(property)
Expand Down Expand Up @@ -531,4 +538,9 @@ private void forceResize() {
pack();
}

private void forceInternalComponentsResize()
{
setPreferredSize( preferredSize );
pack();
}
}

0 comments on commit bd185d1

Please sign in to comment.