-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Horizontal scrollbar clipping problems #519
Comments
I'll look into it. Columns are still full of issues. Consider setting an explicit content width. |
OK, but it might be something in my code: it's an old piece of code where I explicitly used ImGui::SetColumnOffset(...) (every frame or so)... maybe that did not take ImGui::GetScrollX() into consideration (horizontal scroll bars did not exist when I wrote that code...). |
I've just run into this issue myself. Just as the gif shows above, the columns will track with the scroll bar correctly, but the clipping on the final column shrinks until the last column is completely cutoff. |
Happens for example in Example app Log: Last line is partially covered by horizontal scrollbar |
@sonoro1234 The bug you are referring to is unrelated to this thread, I think it is #665 which I have just fixed. |
This should be fixed now. @Flix01
Let me know if it all works for you. Additionally I just applied a bunch of Columns related changes, so interested in hearing feedback if anything broken/improved. |
Seems to work, and I'm not seeing anything broken so far... 👍 |
- `CODE_CHAR_HEIGHT` is changed to 14 pixel. - While setting `CodeSnippetWindow.height`, tailing space should be also considered. Currently it's set to 20 to prevent content of code snippet being truncated by window. Besides, we also have to call `imgui.set_next_window_content_size()` to determine the size of child region `code snippet` for this issue. Otherwise, horizontal won't show up no matter how the window size is resized. See also this issue: ocornut/imgui#519
- `CODE_CHAR_HEIGHT` is changed to 14 pixel. - While setting `CodeSnippetWindow.height`, trailing space should be also considered. Currently it's set to 20 to prevent content of code snippet being truncated by window. Besides, we also have to call `imgui.set_next_window_content_size()` to determine the size of child region `code snippet` for this issue. Otherwise, horizontal won't show up no matter how the window size is resized. See also this issue: ocornut/imgui#519
Hi.
I've rarely used horizontal scroll bars so far.
However I've tried using a horizontal scroll bar together with a "column layout", and I've discovered that last column text gets clipped like in the image:
I'm not sure if it's my fault or not. Do you have some advice about it ?
The text was updated successfully, but these errors were encountered: