CodenameOne
CodenameOne copied to clipboard
Iphone screen shape
On Iphones, there is a big no-go area at the top of the screen. Standard codename1
frames do not correctly avoid this area. See screen shot. Also, if held landscape mode,
this huge divot is on the left instead of the top, and the frame takes no notice at all,
so the divot overlaps with all the critical contents likely to be at the left of the window.
This doesn't show up in screen shots, which contain pixels the user cannot see.
https://www.codenameone.com/blog/safe-areas.html This should sort that
Looks promising. The safe areas seems to be somewhat larger than necessary to avoid the obstacles, but I can deal with that.
This almost solves the problem, except that when the notch is placed at the right, getSafeArea still reports that its on the left. This results in pictures like this.
I would be most convenient if this bug were fixed by changing the value returned to a 4 side insets rather than a rectangle.
It may be better to file a new issue regarding what you have found and your suggestion