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

Top comments (1)

Collapse
 
touilfarouk profile image
Farouk Touil

Under size_hint_y: None
Add this:
Height:self.minimum_height
Row_default_height: '45dp'
Row_force_default:true