Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Min-width vs set-column-width #881

Open
quadbyte opened this issue Dec 18, 2024 · 1 comment
Open

Min-width vs set-column-width #881

quadbyte opened this issue Dec 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@quadbyte
Copy link

I have a window rule set as

window-rule {
  min-width 300
}

The window-rule is working fine and limit the display width accordingly.

That being said when I use my key-bind to reduce the width of a column (via set-column-width "-5%";)

If I keep repeating the -5% command once the window reached the minimum, it does nothing visually which is fine but it seems the logical window size is still updated below the min-width. So I can go below the min-width specified in the window rule.

So when I want to grow back the column-width with (set-column-width "+5%") I sometimes have to press it multiples times until the column size actually grow.

It's a bit hard to describe, hope you understand ;P

@quadbyte quadbyte added the bug Something isn't working label Dec 18, 2024
@YaLTeR
Copy link
Owner

YaLTeR commented Dec 18, 2024

I guess we could try clamping the size requests to the current min/max width. Can't say without trying what edge cases may show up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants