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

Limit resizing to horizontal / vertical? #36

Open
adipose opened this issue Sep 17, 2024 · 2 comments
Open

Limit resizing to horizontal / vertical? #36

adipose opened this issue Sep 17, 2024 · 2 comments

Comments

@adipose
Copy link

adipose commented Sep 17, 2024

Is this possible today?

@ppescher
Copy link
Owner

Indirectly, you can do it. Just specify min/max track size to be the same (same height or same width).

You cannot, however, specify only one dimension and leave the other to the default behavior and size limits. Currently, both width and height are used to override window's min/max info. You can use 0 and screen size (or max int maybe?) for the other dimension you don't want to limit.

Another nuance is that the mouse cursor will still indicate that a resize is possible over all window edges.

@adipose
Copy link
Author

adipose commented Sep 19, 2024

Maybe an improvement can be made to do this. Including not showing resizable pointers on unsupported directions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants