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 resizing reordered panels #6011

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Fix resizing reordered panels #6011

merged 1 commit into from
Jun 20, 2024

Conversation

ruggi
Copy link
Contributor

@ruggi ruggi commented Jun 20, 2024

Problem:

A reordered panel that is the only element of a column cannot be resized.

Fix:

When calculating non empty columns, take into account the visibility of the column panels too, which would otherwise return a zombie column index and mess up the resizing calculations.

Screen.Recording.2024-06-20.at.12.32.46.PM.mov

Manual Tests:
I hereby swear that:

  • I opened a hydrogen project and it loaded
  • I could navigate to various routes in Preview mode

Fixes #6005

Copy link
Contributor

github-actions bot commented Jun 20, 2024

Try me

Copy link

relativeci bot commented Jun 20, 2024

#13168 Bundle Size — 62.26MiB (~+0.01%).

0368444(current) vs 6339ece master#13166(baseline)

Warning

Bundle contains 51 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#13168
     Baseline
#13166
Regression  Initial JS 45.32MiB(~+0.01%) 45.32MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 21.6% 0%
No change  Chunks 30 30
No change  Assets 33 33
No change  Modules 4305 4305
No change  Duplicate Modules 525 525
No change  Duplicate Code 31.84% 31.84%
No change  Packages 448 448
No change  Duplicate Packages 51 51
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#13168
     Baseline
#13166
Regression  JS 62.24MiB (~+0.01%) 62.24MiB
Improvement  HTML 11.16KiB (-0.33%) 11.2KiB

Bundle analysis reportBranch fix/resize-panels-reorderedProject dashboard

@ruggi ruggi merged commit b77fd3d into master Jun 20, 2024
16 checks passed
@ruggi ruggi deleted the fix/resize-panels-reordered branch June 20, 2024 11:09
Copy link
Contributor

@balazsbajorics balazsbajorics left a comment

Choose a reason for hiding this comment

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

+1

liady pushed a commit that referenced this pull request Dec 13, 2024
**Problem:**

A reordered panel that is the only element of a column cannot be
resized.

**Fix:**

When calculating non empty columns, take into account the visibility of
the column panels too, which would otherwise return a zombie column
index and mess up the resizing calculations.


https://github.com/concrete-utopia/utopia/assets/1081051/4b07009e-6849-4008-b1f8-8e3479126b2c

**Manual Tests:**
I hereby swear that:

- [x] I opened a hydrogen project and it loaded
- [x] I could navigate to various routes in Preview mode

Fixes #6005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot resize the navigator (Probably trivial fix! Easy repro steps! Show Balazs how to write good code!)
4 participants