Open AHiXilTOr opened 8 months ago
Yes, it looks like a bug.
Yes, it looks like a bug.
this happens due to binding to the screen, and not to the parent, please change the on_size path using this method
from kivymd.uix.appbar import MDBottomAppBar
def on_size(self, *args) -> None:
#Fired when the root screen is resized.
if self._fab_bottom_app_bar_button:
self._fab_bottom_app_bar_button.x = Window.width - (dp(56) + dp(16))
on
def on_size(self, *args) -> None:
#Fired when the root widget is resized.
if self._fab_bottom_app_bar_button:
self._fab_bottom_app_bar_button.x = self.parent.width - (dp(56) + dp(16))
When the screen expands sharply, the MDFabBottomAppBarButton widget goes out of frame. I have read that it is a FloatLayout, but when expanded a little (adding size), the widget does not change position relative to the position of MDBottomAppBar.
Code
Screenshots
Versions