Changeset 2969 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/DialogsPanel.java
- Timestamp:
- 2010-02-12T20:01:55+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/DialogsPanel.java
r2869 r2969 122 122 * in the last panel anyway. 123 123 */ 124 int k = N-1; // index of the current Panel (start with last one) 125 JPanel p = panels.get(k); // current Panel 126 k = -1; // indicates that the current Panel index is N-1, but no default-view-Dialog was added to this Panel yet. 124 JPanel p = panels.get(N-1); // current Panel (start with last one) 125 int k = -1; // indicates that the current Panel index is N-1, but no default-view-Dialog has been added to this Panel yet. 127 126 for (int i=N-1; i >= 0 ; --i) { 128 127 final ToggleDialog dlg = allDialogs.get(i); … … 171 170 if (dlg.isDialogInDefaultView()) { 172 171 if (dlg != triggeredBy) { 173 final int ph = dlg.getPreferredHeight(); 174 final int ah = dlg.getHeight(); 175 sumP += ph; 176 sumA += ah; 172 sumP += dlg.getPreferredHeight(); 173 sumA += dlg.getHeight(); 177 174 } 178 175 } else if (dlg.isDialogInCollapsedView()) { 179 176 sumC += dlg.getHeight(); 180 177 } 178 } 179 180 /** 181 * If we add additional dialogs on startup (e.g. geoimage), they may 182 * not have an actual height yet. 183 * In this case we simply reset everything to it's preferred size. 184 */ 185 if (sumA == 0) { 186 reconstruct(Action.ELEMENT_SHRINKS, null); 187 return; 181 188 } 182 189
Note:
See TracChangeset
for help on using the changeset viewer.