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

VSlider knob clips at top and often also at the bottom #43

Open
saurik opened this issue May 30, 2022 · 1 comment
Open

VSlider knob clips at top and often also at the bottom #43

saurik opened this issue May 30, 2022 · 1 comment

Comments

@saurik
Copy link

saurik commented May 30, 2022

This is visible in the imtui online demo (so it should be easy to see): if you go under Widgets / Vertical Sliders the sliders have knobs that are 2 rows tall, except when at the very top they are being rendered as one row tall... but clearly with the space where the second row would be being rendered, so it isn't like it is somehow off the top of the slider or anything. Some of the sliders (the ones towards the left) are exhibiting the same behavior at the bottom.

@ggerganov
Copy link
Owner

Thanks for the report.

You should be able to fix this visual artifact using:

ImGui::GetStyle().GrabMinSize = 1.0f;

By default, the value is 0.1f:

ImGui::GetStyle().GrabMinSize = 0.1f;

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