Centering in landscape
- Dominant language
- HTML
- Stars
- 305
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Description
When I run your Hello World demo in landscape, there seems to be a problem with horizontal centering of subviews created in the `viewDidLoad` method. This problem persists with views created in new ViewControllers created later.
The problem can be corrected by running `rmq.all.reapply_styles` after the view is visible. I'm not sure what causes it. Rotating also fixes it. It really only appears when content is setup in `viewDidLoad`. It may have something to do with device/view rotation since it's always correct in portrait.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Hello World demo and trace views created in viewDidLoad, then compare initial landscape layout with portrait and with a later rotation. Investigate the timing around view visibility and the existing rmq.all.reapply_styles workaround. Done means subviews are horizontally centered on the first landscape display without requiring reapply_styles or rotation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100