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 visibility resolution when item is less then a parent #589

Conversation

KovalevAndrey
Copy link
Collaborator

@KovalevAndrey KovalevAndrey commented Sep 12, 2023

Description

Previously when resolving an item's visibility the assumption was made that the item always matches the parent's bounds. This leads to incorrectly resolving the visibility of elements that do not match the parent's bounds.

This bug could be observed in the example of the TestDrive. If we push the element off the screen it will still be visible, and therefore present in the composition.

This PR collects the last known size of the element and applies this size to the invisible dummy composable which resolves visibility for that element.

Check list

  • I have updated CHANGELOG.md if required.
  • I have updated documentation if required.

@KovalevAndrey KovalevAndrey added bug Something isn't working appyx-interactions labels Sep 12, 2023
@KovalevAndrey KovalevAndrey added this to the 2.0 milestone Sep 12, 2023
@KovalevAndrey KovalevAndrey merged commit cf7a88b into bumble-tech:2.x Sep 12, 2023
7 checks passed
@KovalevAndrey KovalevAndrey deleted the 2.x-fix-visibility-for-corner-cases branch September 12, 2023 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
appyx-interactions bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants