Expand direction for minimized frames


#1

In our application, we have CMinimizeAreas on the left, right, and bottom of our main frame. When our application is maximized, if the user expands a dockable from any of these areas, the panel expands over the top of our app frame as expected. However, if the application is not maximized, if there is enough space outside of it, the dockable will expand next to the application. For example, if a minimized dockable on the left is expanded, it may appear to the left of the application frame instead of being overlaid on top of the left side of the frame. We have also seen this effect when using multiple monitors: if our application is maximized on the right monitor and a dockable in the left minimize area is expanded, it will display on the left monitor.

Is there anyway to configure this behavior?


#2

Yes there is. You can set the direction in which the popup shows up relative to the CMinimizeArea, like this:

        CControl control = ...
        CContentArea contentArea = control.getContentArea();
        
        CMinimizeArea north = contentArea.getNorthArea();

        // SOUTH because the popup should be below the station, which is at the top (north).
        north.getStation().setDirection( Direction.SOUTH );