-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Improving nested scrolling regions behavior #830
Comments
Tangentially related, it would be nice if, when using columns in a fixed-height child region, the dividers extended to the bottom of the region (in the case that there are not enough rows to fill the region). See below for an example:
|
Hi Geoffrey, For the first request. I understand it in this context but I'm having a hard time figuring out it is desirable or would make sense in the general context. I think it might be but it'd be cautious. Moreover, different behavior might be desirable with mouse-wheel based scroll vs programmatic vs gamepad navigation scroll. (Those changes are already a quite trickier than they sounds because there are a few subtle dependencies within the frame. Mouse-wheel are processed in NewFrame() and calling SetWindowScrollY() which sets ScrollY immediately - it is a rather unusual path but works since we're not in Begin/End. It may make more sense to store and defer the desirable relative scroll amount and process in Begin() once we have a contents size for the current frame, or move it all in Begin().) Columns are a total mess at the moment, they barely changed since 1.0 and accumulating a pile of todos. What I would do right now is just to move your cursor to the bottom of the child window before closing the columns. I'm accumulating notes locally and in #513 #125 and that's one thing that will be automatically handled. Along with making it more natural and easy to line up stuff. TL;DR; both doable, not high priority since I'm rather busy right now but I may have a look in particular at (1) since it seems less involved. Columns may need to wait for big update. |
For your second question, I tested this: The center column is still not horizontally aligned making everything looks a bit horrible but that's another problem. |
Basically enforcing child pos and size to match. |
Hi Omar! Thanks for taking the time to answer my questions and looking into a solution for (1) despite your busy schedule. From an API perspective, would it make sense to pass a flag when creating the child region that determines whether or not it should pass scrolling focus to the parent? When configured, I imagine this behavior would only be associated with mouse-wheel (although maybe gamepad too?). I'm not sure it would make sense from a programmatic perspective. As for (2), the workaround you mentioned works great for me. Cheers, |
Geoff, |
Closing this old issue as it is handled by Tables and Columns are essentially legacy API at this point. |
When a scrolling region is nested within another, it would be nice if the following behavior existed:
Here's an example for quickly fiddling around with this yourself:
The text was updated successfully, but these errors were encountered: