Incorrect button width when window not resized
ilya2008ss opened this issue · comments
‣ImIlya₰ commented
Description of the Bug
At the start of the program, the width of the button is incorrect, and the width can be corrected only by resizing the window
Code and Logs
from kivy.lang import Builder
from kivymd.app import MDApp
KV = """
MDBoxLayout:
orientation: 'vertical'
MDRectangleFlatIconButton:
text: 'Hello world'
width: self.parent.width
"""
class MainApp(MDApp):
def build(self):
return Builder.load_string(KV)
MainApp().run()
Screenshots
Versions
- OS: Windows 10
- Python: 3.10.6
- Kivy: 2.3.0
- KivyMD: 1.2.0
Yuri Ivanov commented
KivyMD: 1.2.0 is not supported