Ignore:
Timestamp:
03/18/19 18:38:32 (5 years ago)
Author:
davidb
Message:

Changed how DisplayController width, height and size are retrieved. Now does this top-level, rather than going through the AxisAlignmentBox. In doing so, can now control for when the window size has you yet been correctly mapped to the screen, and fall back to pre-defined MINIMUM defaults

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/apollo/gui/ExpandedTrackManager.java

    r1102 r1258  
    170170                                if (!PopupManager.getInstance().isShowing(trackSelectionPopup)) {
    171171                                       
    172                                         trackSelectionPopup.setLocation((DisplayController.getFramePaintArea().getWidth() - trackSelectionPopup.getFullBounds().getWidth()) / 2, 0);
     172                                        trackSelectionPopup.setLocation((DisplayController.getFramePaintAreaWidth() - trackSelectionPopup.getFullBounds().getWidth()) / 2, 0);
    173173                                       
    174174                                        // Creep from above
     
    413413                        assert(Browser._theBrowser != null);
    414414               
    415                         int cpWidth = DisplayController.getFramePaintArea().getWidth();
    416                         int cpHeight = DisplayController.getFramePaintArea().getHeight();
     415                        int cpWidth = DisplayController.getFramePaintAreaWidth();
     416                        int cpHeight = DisplayController.getFramePaintAreaHeight();
    417417                        if (!DisplayController.isAudienceMode()) { // if message bay is showing - the remove the height
    418418                               
Note: See TracChangeset for help on using the changeset viewer.