DEV Community

Cover image for How do I remove extra unwanted space in kivy BoxLayout?
Taslim A Hussain
Taslim A Hussain

Posted on

How do I remove extra unwanted space in kivy BoxLayout?

Extra Space

<BoxExample@BoxLayout>:
    orientation: "vertical"
    BoxLayout:
        orientation: "horizontal"
        size_hint_y: None
        Button:
            text: "Logo"
            size_hint: None, None
            width: "80dp"
            height: "40dp"
            pos_hint: {'top': 1}
        Button:
            text: "Menu"
            size_hint: 1, None
            height: "40dp"
            pos_hint: {'top': 1}
    Button:
        text: "Body"
    Button:
        text: "Footer"
        size_hint: 1, None
        height: "40dp"
Enter fullscreen mode Exit fullscreen mode

Discussion (0)