-
-
Notifications
You must be signed in to change notification settings - Fork 901
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
Dwindle: Make resize more intuitive #2681
Conversation
ef053fd
to
424e5b5
Compare
with keyboard resizing we should keep how it used to be imo, you can achieve that by adding a CORNER_NONE to the enum and using that as default |
Sure! The original code only allows two axis of freedom if the parent's immediate parent has another orientation. My proposal is we keep traversing the tree (as in the new behavior) to find a suitable parent. Not exactly what you asked for, but maybe good anyway. This way we can use the same code with minor modifications. Up to you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks alright
This works really well!! Thank you so much! I wanted to make a note of some behaviour I found though. Given this layout:
Dragging any corners of window However, dragging on the 'inner' corners of the side windows ( Does this help? |
Yes, it's a limitation with the implementation now. When you resize the window - in order to guarantee that it doesn't move around, it might need to update the split ratios of a secondary parent. In certain situations that will make the other elements shrink/grow. The behavior is technically correct, but it might look weird. It's possible to make this update recursively and make stuff move around less, but I think this is good enough for a first version. But you're welcome to open a new issue to improve this. :) |
Yes, agreed, this is more than I could ask for as a first pass, the main things are all there! I just wanted to raise it in case you weren't aware :) Thank you so much for your hard work |
Describe your PR, what does it fix/add?
This improves resizing to make it a little more intuitive. It allows you to to change the size by dragging any corner of the window while anchoring the opposite side.
I think this issue is related:
#2112
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
Not currently.
Is it ready for merging, or does it need work?
Couple of questions:
Should this behavior be opt-in?
When using keyboard resizing, should we use the old behavior?