[GH-ISSUE #204] Height option for custom modules/widgets #1498

Closed
opened 2026-05-22 22:52:41 +01:00 by JakeStanger · 3 comments
Owner

Originally created by @preetamsad on GitHub (Jun 26, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/204

Currently, adding a custom module increases the bars the total height which is annoying. I use a laptop with a small screen so the slight increase in height matters a lot. I want to add a custom power menu but the height increases when i place a button widget on the bar. Is there a way to avoid that or is there a way I can decrease the button's height so that total height of the bar does not increase??

Great project BTW !! 🤗

Originally created by @preetamsad on GitHub (Jun 26, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/204 Currently, adding a custom module increases the bars the total height which is annoying. I use a laptop with a small screen so the slight increase in height matters a lot. I want to add a custom power menu but the height increases when i place a button widget on the bar. Is there a way to avoid that or is there a way I can decrease the button's height so that total height of the bar does not increase?? Great project BTW !! :hugs:
JakeStanger 2026-05-22 22:52:41 +01:00
Author
Owner

@JakeStanger commented on GitHub (Jun 26, 2023):

Hey, GTK will size a module automatically, and will push it out to ensure its child content fits - you can set a min size, but not a max.

Most likely what's happening is you have some padding/margin on the module, or the font size is too large, and that's pushing the module out.

If you want me to take a look I can - just share your config/style.

<!-- gh-comment-id:1608190093 --> @JakeStanger commented on GitHub (Jun 26, 2023): Hey, GTK will size a module automatically, and will push it out to ensure its child content fits - you can set a min size, but not a max. Most likely what's happening is you have some padding/margin on the module, or the font size is too large, and that's pushing the module out. If you want me to take a look I can - just share your config/style.
Author
Owner

@preetamsad commented on GitHub (Jun 26, 2023):

Thanks for replying early. Yea padding/margin seemed to be the issue. I added * {padding: 0px; margin: 0px} to my style.css and now the button does not push out the bar's height.

Thanks for helping out, closing the issue now. 😄

<!-- gh-comment-id:1608209373 --> @preetamsad commented on GitHub (Jun 26, 2023): Thanks for replying early. Yea padding/margin seemed to be the issue. I added `* {padding: 0px; margin: 0px}` to my style.css and now the button does not push out the bar's height. Thanks for helping out, closing the issue now. :smile:
Author
Owner

@azertyfun commented on GitHub (Sep 11, 2025):

Just FYI for anyone who stumbles upon this issue, I have narrowed down the CSS a little further:

.container box * {
    min-height: 0;
}
<!-- gh-comment-id:3279501749 --> @azertyfun commented on GitHub (Sep 11, 2025): Just FYI for anyone who stumbles upon this issue, I have narrowed down the CSS a little further: ```css .container box * { min-height: 0; } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#1498
No description provided.