Changeset 14677 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2019-01-12T16:58:10+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r14673 r14677 81 81 import org.openstreetmap.josm.data.osm.search.SearchCompiler; 82 82 import org.openstreetmap.josm.data.osm.search.SearchSetting; 83 import org.openstreetmap.josm.data.preferences.BooleanProperty; 83 84 import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil; 84 85 import org.openstreetmap.josm.gui.ExtendedDialog; … … 243 244 private final transient TaggingPresetHandler presetHandler = new TaggingPresetCommandHandler(); 244 245 246 private static final BooleanProperty PROP_AUTORESIZE_TAGS_TABLE = new BooleanProperty("propertiesdialog.autoresizeTagsTable", false); 247 245 248 /** 246 249 * Create a new PropertiesDialog … … 311 314 tagData.setColumnIdentifiers(new String[]{tr("Key"), tr("Value")}); 312 315 tagTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); 313 tagTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);314 316 tagTable.getTableHeader().setReorderingAllowed(false); 315 317 … … 673 675 pluginHook.setVisible(hasSelection); 674 676 675 // resize tables to fit content 676 TableHelper.computeColumnsWidth(tagTable); 677 autoresizeTagTable(); 677 678 678 679 int selectedIndex; … … 697 698 } else { 698 699 setTitle(tr("Tags/Memberships")); 700 } 701 } 702 703 private void autoresizeTagTable() { 704 if (PROP_AUTORESIZE_TAGS_TABLE.get()) { 705 // resize table's columns to fit content 706 TableHelper.computeColumnsWidth(tagTable); 699 707 } 700 708 }
Note:
See TracChangeset
for help on using the changeset viewer.