Android: Client area of OptionContainer goes under the tab bar #4354
-
|
Hi, P.S.: I did a small experiment, and replaced the Canvas with an ImageView(..., flex=1); and the image occupies only the expected client area, so it does not seem to be a layout issue. Just an issue of the coordinates passed to Canvas.on_resize, which are including the tab area. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
We may need a little more detail to clarify what you're doing, and how you're responding to it. The content area of an OptionContainer should be the "viewable" area, as you've described it on Linux. If that's not what you're seeing on Android, then that's possibly a bug; we'd need a reproduction case to be certain. Recent releases of mobile platforms have had some interesting relationships with transparency and controls overlapping content areas, so it's possible we've missed something. However, to clarify - |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the info, and for your work! |
Beta Was this translation helpful? Give feedback.


Thanks for that example. The behavior you're seeing is a manifestation of a known issue with the way we're currently implementing OptionContainer on iOS and Android; the issue is tracked as #4297.
There's extensive background detail in the discussions on #4059 and #4271 - but the core of the problem is that the widget we're currently using for OptionContainer on iOS and Android must be a top level widget - that is, you can use an OptionContainer as
main_window.content, but nowhere else.This isn't the case on desktop platforms - it's only a problem for mobile. The fix proposed in #4297 is to change the widget we're using for OptionContainer; we're then going to introduce a new concept cal…