Replace DockPanel with Grid for better layout responsiveness#18
Merged
Conversation
The main window used a DockPanel with the flight log as LastChildFill, plus a fixed MinHeight=190 on the log border. After a launch — when the GO status banner, secondary editor buttons, and the close countdown are all visible — the leftover middle strip shrinks below 190px, so the DockPanel forced the log to render at its minimum and it overflowed both upward (over the GO banner) and downward (over the "Closing… / Keep open" bar), obscuring them. Replace the DockPanel with a Grid (RowDefinitions="Auto,*,Auto"): top controls size to content, the flight log takes the slack via the star row, and the countdown pins to the bottom. Drop the rigid MinHeight so the log shrinks gracefully (its ScrollViewer keeps it usable) instead of overlapping its neighbours when space is tight. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QoHkEWzYULxqMC3Tmeh5DL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactored the main window layout from a
DockPanelto aGridto improve how the UI handles space constraints. This change ensures the flight log can shrink gracefully instead of overlapping neighboring elements when vertical space is limited.Key Changes
DockPanelwithGridusing three rows: Auto (header), * (flight log), and Auto (countdown)Grid.Rowattributes instead ofDockPanel.DockMinHeight="190"constraint from the flight log border to allow it to shrink when neededImplementation Details
The new Grid-based layout provides better responsive behavior:
RowDefinitions="Auto"RowDefinitions="*"and can shrink below its previous minimumRowDefinitions="Auto"This prevents the flight log from overlapping the countdown timer when the window is resized to smaller heights, which was a limitation of the previous DockPanel approach.
https://claude.ai/code/session_01QoHkEWzYULxqMC3Tmeh5DL