react-native-copilot icon indicating copy to clipboard operation
react-native-copilot copied to clipboard

Layout issue (x-axis offset) on second start

Open hschmied opened this issue 6 years ago • 1 comments

Current Behavior When copilot is started, skipped and started a second time, the overlay seems offset on the x-axis. First time around everything is fine, just on the runs thereafter. I already tried several things, like layout/nest the 'walkthroughable' view differently, delay start, relative/absolute positioning, svg- vs. view-overlay, animated on/off...

Expected behavior/code No layout issues on subsequent starts of copilot.

Environment

  • Device: iPhone XR & 5s (Simulator), iPhone XR (Device)
  • OS: iOS12
  • react-native-copilot: v2.4.1
  • react-native: v0.57.8
  • react-native-svg: v6.5.2 initially, then upgraded to v9.2.4

Possible Solution Maybe a way to force recalculate/layout the modal dialog, or be able to manipulate the x-offset (like there's for y). As mentioned -- on the 'initial' calculations, the origins of the affected views are calculated correctly. Only on subsequent loads it's off.

Additional context/Screenshots First run... screenshot 2019-02-14 at 11 36 16

Subsequent run... screenshot 2019-02-14 at 11 36 58

Thank you!

hschmied avatar Feb 14 '19 11:02 hschmied

Any progress on this?

priyankverma avatar May 19 '20 10:05 priyankverma