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

Horizontal Compact Mode issues #1390

Merged
merged 2 commits into from
Mar 1, 2021
Merged

Horizontal Compact Mode issues #1390

merged 2 commits into from
Mar 1, 2021

Conversation

s4m3
Copy link
Contributor

@s4m3 s4m3 commented Jan 25, 2021

Fixes #784 #1372 #1376

Horizontal compact mode should not compact vertically by reducing l.y by using the bottom function: It reduces the container and triggers items of the layout with the highest y values to reposition themselves because the repositioning is mixed with the horizontal compaction. So in my opinion, this one line of code needs to be removed (as done in this Pull Request).

Before:

before.mp4

After:

after.mp4

ghost pushed a commit to medigateio/react-grid-layout that referenced this pull request Feb 3, 2021
react-grid-layout#1390

----------------------------------------
Fixes react-grid-layout#784 react-grid-layout#1372 react-grid-layout#1376

Horizontal compact mode should not compact vertically by reducing l.y by using the bottom function: It reduces the container and triggers items of the layout with the highest y values to reposition themselves because the repositioning is mixed with the horizontal compaction. So in my opinion, this one line of code needs to be removed (as done in this Pull Request).
@s4m3
Copy link
Contributor Author

s4m3 commented Feb 12, 2021

ping @STRML
Any chance you can take a look at this one? Or who are the other people who can review and accept PRs?

@STRML
Copy link
Collaborator

STRML commented Mar 1, 2021

Thanks, this looks decent, could you please update the videos though?

@STRML
Copy link
Collaborator

STRML commented Mar 1, 2021

Tested this locally, works great. Thanks for the catch!

@STRML STRML merged commit 7364ba6 into react-grid-layout:master Mar 1, 2021
@s4m3 s4m3 deleted the bugfix/horizontal-compact-mode-issues branch March 2, 2021 07:52
@s4m3
Copy link
Contributor Author

s4m3 commented Mar 2, 2021

@STRML thanks for looking into it. I am not sure what you mean by updating the videos. What do you need?

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.

Several bugs with horizontal compactType
3 participants