Quick Start: Fix orientation-related issues with quick start notices #18758
Quick Start: Fix orientation-related issues with quick start notices #18758hassaanelgarem merged 5 commits intorelease/20.0from
Conversation
momo-ozawa
left a comment
There was a problem hiding this comment.
@hassaanelgarem 👋
I'm getting a build error:
❌ /usr/local/var/buildkite-agent/builds/builder/automattic/wordpress-ios/WordPress/Classes/ViewRelated/System/WPTabBarController.m:573:15: no visible @interface for 'WPTabBarController' declares the selector 'notifyOfTabBarHeightChangeIfNeeded'
momo-ozawa
left a comment
There was a problem hiding this comment.
If the initial screen is site menu and I rotate landscape -> portrait -> landscape, two unexpected things happen:
- The notice isn't shown any more
- The FAB is "stuck" in the adjusted position when notices are visible
Simulator.Screen.Recording.-.iPhone.13.Pro.Max.-.2022-05-27.at.11.48.56.mp4
Generated by 🚫 dangerJS |
You can test the changes in Jetpack from this Pull Request by:
|
You can test the changes in WordPress from this Pull Request by:
|
That was caused by the stats appearing then disappearing. Fixed in bee31c3 👍 |
|
@hassaanelgarem @momo-ozawa Notice I updated the base branch for this PR to Feel free to revert to |
momo-ozawa
left a comment
There was a problem hiding this comment.
@hassaanelgarem I'm seeing two new issues 👀
If you don't find an immediate solution for this, what do you think of switching back to target trunk? AFAIK this issue has been present for a while now / it's not a regression we introduced recently.
Rotating to landscape when the initial screen is Home
The animation to switch to the split vc doesn't happen immediately -- you see a black screen where the detail vc should be. Then the primary pane rotates to the wrong angle. Finally, the screen switches to the intended split vc view.
Simulator.Screen.Recording.-.iPhone.13.Pro.Max.-.2022-05-31.at.09.43.19.mp4
Rotating to landscape when the initial screen is Menu
The segmented control is superimposed on top of the Next Steps section title before disappearing.
Simulator.Screen.Recording.-.iPhone.13.Pro.Max.-.2022-05-31.at.09.44.17.mp4
That's weird but I can't reproduce this at all. I've tested on 13 Pro Max iOS 15.4. What iOS version are you testing with?
Nice catch! I'll look into that, but I might end up opening another PR for this.
If these issues are already existent (The second one is existent on trunk), I'd prefer to ship the fixes we have now and address the new issues separately in another PR(s). |
I'm testing on a 13 Pro Max iOS 15.4 simulator. I'm using Xcode 13.3.0. Which Xcode version are you using?
Sure, sounds good to me. I just tested the 19.9 tag and I was able to reproduce this behavior, which indicates that neither of the issues are regressions. So should be safe to address these in different PRs. One last thing -- let's make sure to add an [internal] note about this 👍 |
13.3.0 as well 🤔
Awesome!
Sure! Done in 028e2bc 👍 |
momo-ozawa
left a comment
There was a problem hiding this comment.
LGTM!
Tested the steps again and can confirm that this issue is fixed!
|
@hassaanelgarem Unless there's an urgent need to ship this in a beta, I'd wait until another PR lands on the release branch. I know there's one coming with a fix, but I don't think it has been opened yet. Let me know if that's okay. If it isn't, I'll ship a beta with this ASAP. cc @tiagomar |
|
@mokagio I agree! This isn't urgent indeed 👍 |
|
@hassaanelgarem this has been bundled as part of 20.0 beta 1 (20.0.0.1). Thanks for your work 🙌 |
Fixes #18493
Fixes #18757
Description
UIDevice.orientationDidChangeNotificationnotification being posted before the tab bar has updated its height. And since we depend on the tab bar height to align the notice, this causes the misalignment.Testing Instructions
Notice Width
Notice Misalignment
Regression Notes
N/A
N/A
N/A
PR submission checklist:
RELEASE-NOTES.txtif necessary.