Changeset 4395 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2011-09-01T22:29:15+02:00 (13 years ago)
Author:
bastiK
Message:

fixed #6514 - Command Stack scrolls up to the first edit view when hitting Undo if scrollbar is present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java

    r4363 r4395  
    237237        }
    238238        undoTreeModel.setRoot(undoRoot);
    239         undoTree.scrollRowToVisible(undoTreeModel.getChildCount(undoRoot)-1);
    240         scrollPane.getHorizontalScrollBar().setValue(0);
    241239
    242240        List<Command> redoCommands = Main.main.undoRedo.redoCommands;
     
    277275            break;
    278276        }
     277
     278        undoTree.scrollRowToVisible(undoTreeModel.getChildCount(undoRoot)-1);
     279        scrollPane.getHorizontalScrollBar().setValue(0);
    279280    }
    280281
Note: See TracChangeset for help on using the changeset viewer.