KivyMD icon indicating copy to clipboard operation
KivyMD copied to clipboard

Setting height manually for MDListBottomSheet

Open MS-Jahan opened this issue 3 years ago • 0 comments

Is there a way to set height for MDListBottomSheet?

image

As you can see the MDListBottomSheet is taking half of the screen. It'll be nice to be able to adjust its height.

Code I've used:

def show_list_bottom_sheet(self):
	bottom_sheet_menu = MDListBottomSheet()
	bottom_sheet_menu.add_item("1st Year", lambda x: self.callback_for_menu_items("1"), icon='numeric-1-circle')
	bottom_sheet_menu.add_item("2nd Year", lambda x: self.callback_for_menu_items("2"), icon='numeric-2-circle')
	bottom_sheet_menu.add_item("3rd Year", lambda x: self.callback_for_menu_items("3"), icon='numeric-3-circle')
	bottom_sheet_menu.add_item("4th Year", lambda x: self.callback_for_menu_items("4"), icon='numeric-4-circle')
		
	bottom_sheet_menu.open()

MS-Jahan avatar Jul 27 '20 12:07 MS-Jahan