Closed Justyna-JustCode closed 3 months ago
Thanks for filling a bug. We try to get the geometry in this function:
The getWindowVisibleDisplayFrame seems to return a rectangle in the screen coordinate and cut the room for the camera. The problem is that the Window is somehow already displaced.
Trying to provide a fix with #5340
Slint 1.6 ("backend-android-activity-06") + Rust Samsung Galaxy A52 5G (SM-A526B/DS) Android 14
I noticed that the Window's content is not placed correctly in landscape mode, with a left-turned orientation. For this code:
This is how it looks on my phone:
*Landscape, right-turn: OK (the black rectangle on the right is a spacing for the camera notch)
*Landscape, left-turn: WRONG (additional, unnecessary content shift from the left, causing also part of the content to be displayed below the system buttons)