Ignore:
Timestamp:
2014-04-05T15:00:19+02:00 (11 years ago)
Author:
donvip
Message:

[josm_elevationprofile] see #josm9898 - call createLayout()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileDialog.java

    r30344 r30381  
    4848
    4949    private static final String EMPTY_DATA_STRING = "-";
    50     /**
    51      *
    52      */
    5350    private static final long serialVersionUID = -868463893732535577L;
    5451    /* Elevation profile instance */
     
    184181        rootPanel.add(trackPanel);
    185182
    186         add(rootPanel, BorderLayout.PAGE_END);
     183        JPanel mainPanel = new JPanel(new BorderLayout());
     184        mainPanel.add(rootPanel, BorderLayout.PAGE_END);
    187185
    188186        // add chart component
    189187        profPanel = new ElevationProfilePanel(null);
    190         add(profPanel, BorderLayout.CENTER);
     188        mainPanel.add(profPanel, BorderLayout.CENTER);
    191189        profPanel.addComponentListener(this);
    192190
    193         dock();
     191        createLayout(mainPanel, true, null);
    194192    }
    195193
Note: See TracChangeset for help on using the changeset viewer.