Address NoticePresenter iPad rotation workaround
Fixes #11900
To test: Reproduce steps in #11345
| iPad Air Simulator | iPhone 15 Simulator |
|---|---|
Description
New solution for bug in #11345 (Fix Notices showing anywhere but the bottom on iPad devices)
Regression Notes
-
Potential unintended areas of impact Notices on iPhone Split view
-
What I did to test those areas of impact (or what existing automated tests I relied on) Tested on iPhone 15 simulator
-
What automated tests I added (or what prevented me from doing so) N/A
PR submission checklist:
- [x] I have completed the Regression Notes.
- [ ] I have considered adding unit tests for my changes.
- [ ] I have considered adding accessibility improvements for my changes.
- [ ] I have considered if this change warrants user-facing release notes and have added them to
RELEASE-NOTES.txtif necessary.
Testing checklist:
- [ ] WordPress.com sites and self-hosted Jetpack sites.
- [x] Portrait and landscape orientations.
- [ ] Light and dark modes.
- [ ] Fonts: Larger, smaller and bold text.
- [ ] High contrast.
- [ ] VoiceOver.
- [ ] Languages with large words or with letters/accents not frequently used in English.
- [ ] Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
- [x] iPhone and iPad.
- [ ] Multi-tasking: Split view and Slide over. (iPad)
@justtwago @dvdchr @guarani @wargcm Could someone review this or let me know if there's any other steps to complete before this can be looked at?
Hi @megmil, thanks for your contribution!
I couldn't reproduce the issue with the notices disappearing on the iPad. The notices appear if I go to Posts or Pages and turn off the internet. As I rotate the device's orientation, the notices work as expected (they move so they're always at the bottom of the screen, no matter the orientation). I'm testing on a physical iPad 8th generation (iPadOS 16.3).
Could you please verify the issue is present on the latest trunk commit? If so, please file an issue with steps to reproduce.
Fixes #11900
Just a note: this should point to an open issue, not a PR.
Hi @guarani! The issue isn't the notices disappearing on iPad (anymore)--that was fixed in #11345. However, the fix in #11345 was a workaround "hack", and Apple engineers recommended a different way to fix it, according to #11900. That's what I implemented here.
My bad with the PR/bug thing. I just saw that it was marked as "Good First Issue."