-
Notifications
You must be signed in to change notification settings - Fork 35
Node's internals rendering misalignments #36
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
Comments
Could you provide the ImNodeFlow related code? |
Hello! https://gist.github.com/aleksradojkovic/a71aa3939a7ad63cd2a0296432643062 Using this CMakeFile (sorry for bad file, still nothing special there) and test.cpp file (still sorry for bad code, but still nothing special), I get: Feel free to reuse my code for examples EDIT: You're closing application with ALT+F4, with succcess Kind regards, |
setPos() for pins is for internal use only, I'll have to fix it, it's confusing this way Edit: You can always modify some style parameters to change the padding and offsets of the pins |
Hello! Even with removed setPos, situation remains the same. I investigated issue further, and I concluded next: If window size, when it's first time created, as smallest as possible, pins will not be rendered fine. Also, if you have window any size, and make it the smallest possible, and restore it back, pin positions will be also corrupted for some reason. Kind regards, |
The same happens if you tab into a widget of a node that is drawn outside of visible view. To reproduce this:
|
about nodes out of view: many months ago I was working on implementing a sort of "Clip rectangle" and splitting the logic of the nodes in two. One part is for the behavior to be executed as needed, and one is for rendering to be executed in view. This feature sadly never came to life because I don't have time to actively work on this project anymore. But if implemented could maybe fix these issues |
Hello there!
First of all, Thanks for contributing and helping our industry with this project!
When using ImGui 1.91.1 version, pins seems to be a little bit offset. Using your provided example, slightly and trivially modified in my app, I get:

Is there same thing happening on your workspace?
Kind regards,
Alex
The text was updated successfully, but these errors were encountered: