Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Layout shifts when opening and closing panels from a fresh state #2241

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

mattrunyon
Copy link
Collaborator

Fixes #1268

This mostly occurs when you have a relatively fresh state. There's a video in the ticket, but if you have just 2 rows then this is frequently triggered. Using incognito mode should give you a fresh state which is affected by this bug.

This fixes both the vertical shift when you open a new panel type (open a notebook from a fresh state or open a table from a fresh layout state) and when you close the last panel in a stack (like in the ticket)

@mattrunyon mattrunyon requested a review from a team September 30, 2024 20:33
@mattrunyon mattrunyon self-assigned this Sep 30, 2024
@mattrunyon mattrunyon requested review from bmingles and removed request for a team September 30, 2024 20:33
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.42%. Comparing base (ee1bc2f) to head (094cd3b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2241      +/-   ##
==========================================
- Coverage   46.42%   46.42%   -0.01%     
==========================================
  Files         698      698              
  Lines       38751    38750       -1     
  Branches     9860     9885      +25     
==========================================
- Hits        17991    17990       -1     
+ Misses      20749    20706      -43     
- Partials       11       54      +43     
Flag Coverage Δ
unit 46.42% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@bmingles bmingles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good. I confirmed the layout no longer shifts.

@mattrunyon mattrunyon merged commit aad0aa6 into deephaven:main Oct 1, 2024
11 checks passed
@mattrunyon mattrunyon deleted the golden-layout-shift-fix branch October 1, 2024 17:53
@github-actions github-actions bot locked and limited conversation to collaborators Oct 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Layout shift when closing the last column in a row
2 participants