Skip to content

Commit 679098c

Browse files
committed
Fix autoscale & group autoscale repaint problems
1 parent fe27372 commit 679098c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/org/broad/igv/track/TrackMenuUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ private static JMenuItem getGroupAutoscaleItem(final Collection<Track> selectedT
918918
}
919919

920920
PreferencesManager.getPreferences().setShowAttributeView(true);
921-
IGV.getInstance().getMainPanel().invalidate();
921+
IGV.getInstance().getMainPanel().revalidateTrackPanels();
922922
IGV.getInstance().repaint(selectedTracks);
923923

924924
});

src/main/java/org/broad/igv/ui/IGV.java

+1
Original file line numberDiff line numberDiff line change
@@ -2433,6 +2433,7 @@ private void repaint(final JComponent component, Collection<? extends Track> tra
24332433

24342434
if (futures.size() == 0) {
24352435
UIUtilities.invokeOnEventThread(() -> {
2436+
Autoscaler.autoscale(getAllTracks());
24362437
checkPanelLayouts();
24372438
component.repaint();
24382439
});

0 commit comments

Comments
 (0)