-
-
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
InputScalarN/DragScalarN/SliderScalarN can mess up the layout when called with only one component #7095
Comments
… incorrect pushes into ItemWidth stack when number of components is 1. [#7095]
Thank you for the report! I have pushed a fix as 1fade35. |
Still breaks if there are 0 (or negative) components. "foo" widget won't show, but "bar" is still the wrong size and will have double the vertical spacing with the last visible component. |
Added an assert for it. |
…s: Added when component <= 0. (ocornut#7095)" This reverts commit 69f524b.
Version/Branch of Dear ImGui:
Version: v1.90
Branch: docking
My Issue/Question:
XxxScalarN
, throughPushMultiItemsWidths
, pushes a minimum of two entries intoItemWidthStack
, but only pops as many as there are components. If one (or less) component is used, there will be one (or more) leftover entry in the stack, which can then mess up the layout of subsequent widgets.Screenshots/Video
Expected result:
Actual result:
Standalone, minimal, complete and verifiable example: (see #2261)
The text was updated successfully, but these errors were encountered: