-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
CollapsingHeader with clipped headers #1864
Comments
… include ImGuiTreeNodeFlags_NoTreePushOnOpen. The flag was already set by CollapsingHeader(). The only difference is if you were using TreeNodeEx() manually with ImGuiTreeNodeFlags_CollapsingHeader and without ImGuiTreeNodeFlags_NoTreePushOnOpen. In which case you can remove the ImGuiTreeNodeFlags_NoTreePushOnOpen flag from your call (ImGuiTreeNodeFlags_CollapsingHeader & ~ImGuiTreeNodeFlags_NoTreePushOnOpen). (#1864)
What you are doing is not correct use of the clipper. The element need to be evenly spaced. The
Not at the moment. I would like to add that for TreeNode eventually. For CollapsingHeader it isn't trivially possible because there's no delimitation of what constitute the CollapsingHeader "contents" (there's no hierarchy and not explicit "closure"). (PS: I just pushed a small change that makes it possible to use a CollapsingHeader with a TreePush/TreePop. Which will come in handy if we want the scope to be used for auto-scrolling later)
The question is too vaguely formulated. Please talk in more specific terms. |
A little more commentary on what you are trying to do. In addition to the complication of solving clipping with uneven elements (which we should still aim to improve), in my experience when you are browsing a large number of nodes, "opening" them directly within the list is not the most practical setup. In this situation I would suggest clicking on a node to browse the content on the side (e.g. child window on the right of the list) or opening a popup to show the content (that's easier to setup if you don't need the data to stay open). If you use this sort of pattern then you can clip the main list easily. |
Thank you for fast answer! What I'm trying to achieve is a software for a friend to help him to tracks items he has in store. Thank you again, |
Yes this is what it means.
See #319
I don't understand, sorry. Let me know if you have other questions or if we can close this later. |
Thank you for your time, Alessio |
Hello,
I'm using imgui 1.62 (WIP) under Win7 with dx9 backend.
I've created a CollapsingHeader with clipped headers adding to example following code:
the result is ok, but when I scroll to last row going out of the window with mouse button pressed, something awful happens:
As you can see the headers keeps moving fast up and down !
It seems to occurs only at certain window size.
Then, I would to ask:
Thank you,
Alessio
The text was updated successfully, but these errors were encountered: