Nav buttons misplaced after app window resize (smaller)

Issue #397 resolved
Robert Leach created an issue

USE CASE: WHAT DO YOU WANT TO DO?

Return the app window to its previous size & position after maximizing it.

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

  1. Open a file in Treeview
  2. manually drag the window to its smallest size and put in the lower-right corner of the screen
  3. Click the green app window button (Standard Mac OS X button - top left corner in main window title bar) to maximize the window.
  4. Click the same button in step 3 to re-establish window size/position
  5. Quit TreeView, relaunch (with small app window size), & open a file
  6. Drag the window larger then smaller

CURRENT BEHAVIOR

Size & position are re-established, but the nav buttons move to the right (as if their position was absolute relative to the top left corner of the larger version of the window:

click_green_button_twice.png

EXPECTED BEHAVIOR

The nav buttons should remain horizontally centered:

expected_nav_button_placement.png

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

Update the nav button position during/after window resize via the green title bar button.

FILES AFFECTED (where the changes will be implemented) - developers only

unknown

LEVEL OF EFFORT - developers only

minor

COMMENTS

Comments (14)

  1. Srikanth Bezawada

    @hepcat72 -This is how it looks when dragged to lower left on windows

    minimized.PNG

    and when maximized it looks normal.

  2. Robert Leach reporter

    Yes, so it seems you can reproduce the issue as well. Good. It's not just a mac issue.

    Note, window size and position are saved when you close the app window and select quit. If you shut down the app when it's window is small like that, the next time you launch it, the button placement should be correct for the small-sized window. The nav buttons will likely push things off the right (as seen in your screen-cap) the next time you drag the window larger and smaller again.

    This issue is somewhat new. It probably was introduced when we implemented the new layout since alpha02.

  3. Robert Leach reporter

    Added wmax 33% to the miglayout constraints for the data ticker JPanel which appears to resolve issue 397. The nav buttons no longer overtake the search boxes or push data off the right side of the window.

    → <<cset a2588014ff9e>>

  4. Robert Leach reporter

    Added wmax 33% to the miglayout constraints for the data ticker JPanel which appears to resolve issue 397. The nav buttons no longer overtake the search boxes or push data off the right side of the window.

    → <<cset a2588014ff9e>>

  5. Log in to comment