Skip to content

[BUG] Widget/Window Height gets expanded by big font-size #193

Description

@VuiMuich

Describe the bug

When the font-size is kind of big, the height of the bar is expanded.

But I guess this might be a 'known issue' actually, because the widget documentation state this is not possible:

width: float width of this element. note that this can not restrict the size if the contents stretch it
height: float height of this element. note that this can not restrict the size if the contents stretch it

So if you feel this is more of a feature request, I'll surely adjust this issue accordingly.

Reproducing the issue

Set both the height for a bar window and the font size for some label or button to 34px.
The size of the window is extended beyond 34px.
For comparison you could change the font size to something really small like 10px to see the box shrink to its configured size of 34px

Expected behaviour

I would expect the window-size to stay fixed unless I provide a config flag auto-scale: true or something.

Use Case

I want to use some Nerd-Font glyphs as labels, but they are very tiny in height, so clipping the white above and below the glyph would not matter.

I am affraid though, this might be a limitation by GTK with no easy way to work around.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions