Open joshuatbrown opened 3 months ago
Is the frame of the scroll view changing? Not according to my debugging. On both the first view in landscape and then when it's back in landscape, the scroll view frame is the same size.
Is the scroll view content inset changing? Nope.
Is the scroll view content offset changing? Nope.
Is the scroll view content size changing? Nope.
Further research is needed.
When rotating the device from landscape to portrait and back, there's a gap at the bottom of the image. Steps to reproduce:
Expected: the image should fill the screen even after rotating the device.
Actual: there's a small gap (black bar) below the image.
Additionally, if you zoom out while in landscape and then rotate back to portrait, there's a gap on the side of the image, so it's not centered in the frame.
This was first discovered by Matt and documented in a PR comment:
note1gwug9ke6x40uk8qku0fy0eszr7jldfwj4ap6meqzqhcr3jvyg7kswym5zs
https://github.com/user-attachments/assets/715fd4cd-68db-4cac-b676-99aab06034f5
note19h0x9um6ymwnmmnjqnc6mvmfpcnqq0t0qmam009fwdlwnzlmrqgq76aptp
https://github.com/user-attachments/assets/b80e2b45-fc64-4c0c-bc46-261bf313f6b0
Originally posted by @mplorentz in https://github.com/planetary-social/nos/pull/1437#pullrequestreview-2269106241