Changeset 9866 in josm
- Timestamp:
- 2016-02-23T23:29:53+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java
r9833 r9866 435 435 /** 436 436 * Tries to find a good value of how large the dialog should be 437 * @return Dimension Size of the parent Component or 2/3 of screen size if not available437 * @return Dimension Size of the parent component if visible or 2/3 of screen size if not available or hidden 438 438 */ 439 439 protected Dimension findMaxDialogSize() { 440 440 Dimension screenSize = GuiHelper.getScreenSize(); 441 441 Dimension x = new Dimension(screenSize.width*2/3, screenSize.height*2/3); 442 if (parent != null ) {442 if (parent != null && parent.isVisible()) { 443 443 x = JOptionPane.getFrameForComponent(parent).getSize(); 444 444 }
Note:
See TracChangeset
for help on using the changeset viewer.