LayoutInspectorV2-Pro icon indicating copy to clipboard operation
LayoutInspectorV2-Pro copied to clipboard

fix: account for the View's scroll value in the previewBox calculation

Open Mufanc opened this issue 1 year ago • 2 comments

Previously the previewBox calculation did not account for the View's scroll value which would lead to incorrect coordinate calculations in scenarios like ViewPager.

Mufanc avatar Apr 21 '25 04:04 Mufanc

There also seem to be some issues with the rendering I need to make further adjustments.

Mufanc avatar Apr 21 '25 04:04 Mufanc

It appears the issue wasn't introduced by my changes. reverting to the old code also encounters incorrect device screenshots in certain cases. The cause remains unidentified. I will investigate further and open a new pull request once the cause is determined.

Mufanc avatar Apr 21 '25 06:04 Mufanc