Changeset 8732 in josm for trunk/src/org


Ignore:
Timestamp:
2015-09-06T21:42:03+02:00 (5 years ago)
Author:
simon04
Message:

see #11823 - Minimap: hide shrink/enlarge button

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java

    r8598 r8732  
    324324
    325325    /**
     326     * Enables or disables painting of the shrink/enlarge button
     327     *
     328     * @param visible {@code true} to enable painting of the shrink/enlarge button
     329     */
     330    public void setSizeButtonVisible(boolean visible) {
     331        iSizeButton.setVisible(visible);
     332    }
     333
     334    /**
    326335     * Refreshes the tile sources
    327336     * @since 6364
  • trunk/src/org/openstreetmap/josm/gui/dialogs/MinimapDialog.java

    r8719 r8732  
    3030        super(tr("Mini map"), "minimap", tr("Displays a small map of the current edit location"), null, 150);
    3131        createLayout(slippyMap, false, Collections.<SideButton>emptyList());
     32        slippyMap.setSizeButtonVisible(false);
    3233        slippyMap.addPropertyChangeListener(BBoxChooser.BBOX_PROP, this);
    3334    }
Note: See TracChangeset for help on using the changeset viewer.