Skip to content

fix: KCV onLayout issue#3531

Merged
isekovanic merged 1 commit intodevelopfrom
fix/on-layout-issue-portals
Apr 3, 2026
Merged

fix: KCV onLayout issue#3531
isekovanic merged 1 commit intodevelopfrom
fix/on-layout-issue-portals

Conversation

@isekovanic
Copy link
Copy Markdown
Contributor

🎯 Goal

This PR addresses a very weird issue that could be noticed in some apps, where onLayout was not being invoked by the child view wrapper at all, making it impossible to remeasure translating views while the context menu is open (for example the keyboard closing).

To combat this, we add one more measurement vector through invoking the sync function when we begin closing the context menu as well. Since this runs asynchronously and is controlled through shared values, the overhead is almost non-existent and we make sure that we measure as late as possible.

πŸ›  Implementation details

🎨 UI Changes

iOS
Before After
Android
Before After

πŸ§ͺ Testing

β˜‘οΈ Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Documentation is updated
  • New code is tested in main example apps, including all possible scenarios
    • SampleApp iOS and Android
    • Expo iOS and Android

@isekovanic isekovanic requested a review from oliverlaz April 3, 2026 21:54
@Stream-SDK-Bot
Copy link
Copy Markdown
Contributor

SDK Size

title develop branch diff status
js_bundle_size 348 KB 348 KB 0 B 🟒

@isekovanic isekovanic merged commit a49d3a8 into develop Apr 3, 2026
5 checks passed
@isekovanic isekovanic deleted the fix/on-layout-issue-portals branch April 3, 2026 22:01
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.

2 participants