Changeset 25463 in osm for applications
- Timestamp:
- 2011-02-27T19:30:17+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/turnrestrictions
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnrestrictions/build.xml
r25199 r25463 31 31 32 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value="Fixing # 5614 - JOSM Plugin turn Restrictions" />33 <property name="commit.message" value="Fixing #6016 - Scrollbar hides field entry" /> 34 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 35 <property name="plugin.main.version" value="3835" /> -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/BasicEditorPanel.java
r24937 r25463 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 4 5 import java.awt.Component; 6 import java.awt.Dimension; 5 7 import java.awt.GridBagConstraints; 6 8 import java.awt.GridBagLayout; … … 88 90 gc.gridx = 1; 89 91 gc.weightx = 1.0; 92 gc.weighty = 1.0; 90 93 DefaultListSelectionModel selectionModel = new DefaultListSelectionModel(); 91 add(spVias = new JScrollPane(lstVias = new ViaList(new ViaListModel(model, selectionModel), selectionModel)),gc); 94 spVias = new JScrollPane(lstVias = new ViaList(new ViaListModel(model, selectionModel), selectionModel)) { 95 // fixes #6016 : Scrollbar hides field entry 96 public Dimension getPreferredSize() { 97 return new Dimension(100, 80); // only height is relevant, 80 is just a heuristical value 98 } 99 }; 100 add(spVias,gc); 92 101 if (!Main.pref.getBoolean(PreferenceKeys.SHOW_VIAS_IN_BASIC_EDITOR, false)) { 93 102 lblVias.setVisible(false); … … 100 109 gc.gridy = 4; 101 110 gc.weightx = 1.0; 111 gc.weighty = 0.0; 102 112 gc.gridwidth = 2; 103 113 gc.insets = new Insets(0,0,5,5); -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/ViaList.java
r23510 r25463 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 4 5 import java.awt.Dimension; 5 6 import java.awt.Toolkit; 6 7 import java.awt.datatransfer.Clipboard; … … 93 94 } 94 95 95 /** 96 @Override 97 public Dimension getPreferredScrollableViewportSize() { 98 //return super.getPreferredSize(); 99 Dimension d = getPreferredSize(); 100 d.height = Math.max(d.height, 100); 101 return d; 102 } 103 104 /** 96 105 * The transfer handler for Drag-and-Drop. 97 106 */ -
applications/editors/josm/plugins/turnrestrictions/test/josm.home/preferences
r23510 r25463 1 josm.version=3773 1 2 osm-server.url=http://localhost:8080/api 3 scripting.RunScriptDialog.file-history=asdfasdfasdfsdf 4 scripting.RunScriptDialog.last-file=asdfasdfasdfsdf
Note:
See TracChangeset
for help on using the changeset viewer.