I was previously using Kivymd1.2.0 and the text wrapping was working fine in MDRaisedButton. I have upgraded to Kivymd2.0.1dev and the text wrapping does not work at all. I have tried various things, like changes to MDButtonText in on_size, size change in on_kv_post, and even changing the size of MDButtonText after the button is pressed. Also, if the MDButtonText is bigger than the screensize, the text overflows out of the screen. Please help! This is my python code: from kivy.lang import Builder from kivy.metrics import dp from kivy.properties import StringProperty from kivymd.app import MDApp from kivymd.uix.button import MDButton, MDButtonText import pdb class AdaptiveButton(MDButton): text = StringProperty() def on_size(self, *args): if 'text' in self.ids: self.ids['text'].text_size = self.width - dp(20), None print("Button Width: {}\tButton Text Size: {}".format(self.width, self.ids['text'].text_size)) def button_click(self, *args): print("Before: Button Width: {}\tButton Text Size: {}".format(self.width, self.ids['text'].text_size)) self.ids['text'].text_size = self.width - dp(20), self.height*4 print("After: Button Width: {}\tButton Text Size: {}".format(self.width, self.ids['text'].text_size)) self.do_layout() KV = ''' <AdaptiveButton@MDButton>: style: "tonal" theme_width: "Custom" size_hint_x: 0.8 pos_hint: {'center_x': 0.5, 'center_y': 0.5} on_release: self.button_click() MDButtonText: id: text text: root.text pos_hint: {'center_x': 0.5, 'center_y': 0.5} ''' Builder.load_string(KV) screen_KV = ''' MDScreen: md_bg_color: app.theme_cls.backgroundColor MDBoxLayout: size_hint_x: 1 orientation: "vertical" padding: "24dp" spacing: "24dp" pos_hint: {"center_x": 0.5, "center_y": 0.5} size_hint_y: None height: self.minimum_height AdaptiveButton: id: button text: "This is a long button label that should wrap into multiple lines and grow the button height responsively when the screen size is reduced" ''' class ResponsiveButtonApp(MDApp): def build(self): return Builder.load_string(screen_KV) if __name__ == "__main__": ResponsiveButtonApp().run() So far, I have tried on_size function on the button to change the text_size of MDButtonText, text_size change in on_kv_post, size_hint: (0.8, None) in the KV file for MDButtonText, text_size change on button click. Is there something that I haven't tried yet? Also, if you could help me out with this, that will be great. Thanks in advance! Continue reading...