Skip to content

fix(android): remount event on overlap relayout to clear stale paint#27

Draft
anton-patrushev wants to merge 1 commit into
fix/resource-scroll-active-date-directionfrom
fix/android-stale-paint-overlap
Draft

fix(android): remount event on overlap relayout to clear stale paint#27
anton-patrushev wants to merge 1 commit into
fix/resource-scroll-active-date-directionfrom
fix/android-stale-paint-overlap

Conversation

@anton-patrushev

Copy link
Copy Markdown
Owner

Summary

  • Android-only: include packed layout state (zIndex, xOffsetPercentage) in each EventItem key so the View remounts when overlap topology changes.
  • Works around an Android paint-state bug where, after a sibling event is removed, the surviving event's style updates but the native View keeps the old paint (tappable but invisible).
  • iOS uses CALayer and keeps the original stable key, so no remount cost there.

Ported from core-mobile patch @howljs+calendar-kit+2.5.6+026+fix-android-stale-paint-on-overlap-relayout.

Stacked on top of #26.

Test plan

  • Android: place two overlapping events, delete the front one; verify the remaining event renders normally (was previously invisible-but-tappable).
  • iOS: same scenario; verify no regression and no extra unmount/remount.

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.

1 participant