Index: /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileDialog.java
===================================================================
--- /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileDialog.java	(revision 30380)
+++ /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileDialog.java	(revision 30381)
@@ -48,7 +48,4 @@
 
     private static final String EMPTY_DATA_STRING = "-";
-    /**
-     * 
-     */
     private static final long serialVersionUID = -868463893732535577L;
     /* Elevation profile instance */
@@ -184,12 +181,13 @@
         rootPanel.add(trackPanel);
 
-        add(rootPanel, BorderLayout.PAGE_END);
+        JPanel mainPanel = new JPanel(new BorderLayout());
+        mainPanel.add(rootPanel, BorderLayout.PAGE_END);
 
         // add chart component
         profPanel = new ElevationProfilePanel(null);
-        add(profPanel, BorderLayout.CENTER);
+        mainPanel.add(profPanel, BorderLayout.CENTER);
         profPanel.addComponentListener(this);
 
-        dock();
+        createLayout(mainPanel, true, null);
     }
 
