Changeset 4102 in josm for trunk/src/org
- Timestamp:
- 2011-05-29T21:30:16+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r4072 r4102 8 8 import java.awt.Component; 9 9 import java.awt.Dialog.ModalityType; 10 import java.awt.Dimension; 10 11 import java.awt.Font; 11 12 import java.awt.GridBagLayout; … … 266 267 final JDialog dlg = optionPane.createDialog(Main.parent, tr("Change values?")); 267 268 dlg.setModalityType(ModalityType.DOCUMENT_MODAL); 268 269 Dimension dlgSize = dlg.getSize(); 270 if(dlgSize.width > Main.parent.getSize().width) { 271 dlgSize.width = Math.max(250, Main.parent.getSize().width); 272 dlg.setSize(dlgSize); 273 } 274 dlg.setLocationRelativeTo(Main.parent); 269 275 values.getEditor().addActionListener(new ActionListener() { 270 276 public void actionPerformed(ActionEvent e) {
Note:
See TracChangeset
for help on using the changeset viewer.