-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix getGridRelativeContainingBlock for flow elements (#6713)
**Problem:** `getGridRelativeContainingBlock` doesn't correctly return the item position for flow elements. It was temporarily patched with the positioning coming from `getGridChildCellCoordBoundsFromCanvas`, but this PR instead fixes it for good, which cascade-solves a bunch of other small bugs. **Fix:** The flow positioning requires _all_ preceding grid items to be available in the grid, so this PR does just that: inject every (ordered!) child into the temporary grid, retrieve the wanted one, and return its bounding box. **Manual Tests:** I hereby swear that: - [x] I opened a hydrogen project and it loaded - [x] I could navigate to various routes in Play mode Fixes #6712
- Loading branch information
Showing
5 changed files
with
100 additions
and
151 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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