corona-warn-app / cwa-app-ios

Native iOS app using the exposure notification framework from Apple. The CWA development ends on May 31, 2023. You still can warn other users until April 30, 2023. More information:
https://coronawarn.app/en/faq/#ramp_down
Apache License 2.0
1.68k stars 285 forks source link

Corrupted layout in QR code creation screen on iPhone SE first generation #3796

Closed ndegendogo closed 1 year ago

ndegendogo commented 3 years ago

Avoid duplicates

Technical details

Describe the bug

The QR code creation form has a corrupted layout with overlapping text on iPhone SE first generation.

Steps to reproduce the issue

Expected behaviour

No overlay of the two texts. Either the location type should push the title up into the navigation bar, or it should hide below the navigation bar (and at least be 'blurred' in that case).

Possible Fix

check the layout constraints, especially those for the safe area ...

Additional context

Simulator Screen Shot - iPhone SE (1st generation) - 2021-11-04 at 11 31 42


Internal Tracking ID: EXPOSUREAPP-10544 Internal Tracking ID: EXPOSUREAPP-10545

ndegendogo commented 3 years ago

@jucktnich IIRC you own such a device. Could you please test if this layout corruption is already present in the current released version, and on a true device? Thanks!

jucktnich commented 3 years ago

It's reproducible on a real world device

ndegendogo commented 3 years ago

@jucktnich oh - but thanks for the confirmation. Could you please add more details on your configuration? (iOS version and cwa version).

jucktnich commented 3 years ago

iOS 15.1 cwa 2.13.1 (0)

ndegendogo commented 3 years ago

Initial analysis:

The following screenshot shows the view hierarchy

ndegendogo commented 3 years ago

Initial analysis, continued. Now we look at the layout constraints.

Edit: the top-level content view has checked "Safe Area Relative Margins" - this sets insetsLayoutMarginsFromSafeArea=true, so it does account for the safe area.

Unfortunately, the top-level content view has no @IBOutlet definition, and so it cannot be referenced programmatically at the moment.

ndegendogo commented 3 years ago

The behaviour resembles very much what was observed in #2699.

The layout respects the safe area of the large title only as long as there is enough vertical space. As soon as vertical space becomes tight, it moves up, and overlaps with the large title. The upwards force seems too weak to push the title back into the navigation bar. Only when it starts to touch the bottom position of the "normal" navigation bar ( = with normal title size) - at this moment it succeeds to push the title up and into the bar.

Ein-Tim commented 2 years ago

I can still reproduce this issue.

svengabr commented 2 years ago

I have just checked the linked Jira issue.

Jira Ticket is flagged as: Resolution: Wont Fix Status: Obsolete

Unfortunately, no additional information was added to this Jira ticket.

dsarkar commented 2 years ago

@ndegendogo Dev team's feedback is, that this issue cannot be reproduced anymore. Are you still able to reproduce? Thanks.

dsarkar commented 2 years ago

Internal Tracking ID: EXPOSUREAPP-10545

Ein-Tim commented 2 years ago

@dsarkar Maybe re-open this issue until clarified?

dsarkar commented 1 year ago

can still be reproduced on R 3.1 image

Ein-Tim commented 1 year ago

PR fixing this:

Ein-Tim commented 1 year ago

I suggest closing this issue, as the bug has been fixed in version 3.2.

larswmh commented 1 year ago

Closing as suggested