kivymd / KivyMD

KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications. https://youtube.com/c/KivyMD https://twitter.com/KivyMD https://habr.com/ru/users/kivymd https://stackoverflow.com/tags/kivymd

Home Page:https://kivymd.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MDDialog headline should be optional

ddauer opened this issue · comments

According to M3 design spec the headline is optional.

https://m3.material.io/components/dialogs/guidelines#0cff8b6b-d4f3-4442-8194-31212f5d1a12

However, when leaving the part out, the dialog retains its height (probably due to all height: self.minimum_height in dialog.kv, e.g.:

height: self.minimum_height

Expected result: Only display provided content, e.g. the follow code should show no whitespaces but it does:

MDDialog(            
   MDDialogContentContainer(
      MDIcon(icon="weight")
   )
).open()

red areas indicate too much whitespace:

screen1