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/tiling layout precision #1551

Merged
merged 16 commits into from
Jul 2, 2024
Merged

Fix/tiling layout precision #1551

merged 16 commits into from
Jul 2, 2024

Conversation

merryman
Copy link
Member

@merryman merryman commented May 31, 2024

Fixes: #1545 and other bugs inside the tiling layout that were not yet reported:

  1. Incorrect handling of border width in conjunction with layout computation.
  2. Invisible scroll space due to submorph overflows.
  3. Some Performance improvements.

@merryman merryman force-pushed the fix/tiling-layout-precision branch 10 times, most recently from 815367a to 291306a Compare June 7, 2024 10:46
@merryman merryman marked this pull request as ready for review June 7, 2024 11:11
@merryman merryman force-pushed the fix/tiling-layout-precision branch 2 times, most recently from 2350264 to 31719ee Compare June 10, 2024 13:20
@merryman merryman force-pushed the fix/tiling-layout-precision branch 3 times, most recently from 0da5a43 to 68501be Compare June 16, 2024 10:43
lively.morphic/layout.js Outdated Show resolved Hide resolved
@linusha linusha force-pushed the fix/tiling-layout-precision branch from 68501be to a85a358 Compare July 2, 2024 15:30
Previously we would just compute a single offset value, which was not precise enough since it did not differentiate between the different dimensions.
Previously browsers would add invisible scroll space that could not be scrolled to due to margins rendered to the last submorph inside an axis.
For not entirely clear reasons, yoga nodes need to be reset more often than expected. Not only do we need to reset yoga in case submorphs are removed from the world, but also we need to sometimes reset them, when the layout axis changes. Else the yoga layout will return inconclusive results.
Previously we assumed object identity preserved by the .getChild() function which turned out not to be the case.
@linusha linusha force-pushed the fix/tiling-layout-precision branch from a85a358 to bf3af64 Compare July 2, 2024 15:31
@linusha linusha enabled auto-merge (rebase) July 2, 2024 15:31
@linusha linusha merged commit 491bbc9 into main Jul 2, 2024
4 checks passed
@linusha linusha deleted the fix/tiling-layout-precision branch July 2, 2024 15:44
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.

Scroll-blocking in small asset browser
2 participants