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

BeginPin/EndPin takes space in node even if pin location is moved with PinRect #290

Closed
bgribble opened this issue Apr 20, 2024 · 1 comment

Comments

@bgribble
Copy link

In my application, I am manually positioning the pin locations using PinRect(). What I find is that no matter where I place the pins (and they do render where I wanted them) some invisible space in the node layout is occupied by them as if they were not moved.

So for instance if I have just a Text item in the node, when there are no pins the node wraps tightly around the text (with NodePadding space around it). But when I add pins after adding the text widget, even if the pins are positioned above the text, there is additional blank space added below the text. If I follow every item with a SameLine(), additional blank space is added to the right of the text widget.

@thedmd
Copy link
Owner

thedmd commented Apr 29, 2024

I think those blank spaces are ImGuiStyle ItemSpacing. Hard to tell in details without code.
Please reopen if that wasn't the source of the issue.

@thedmd thedmd closed this as completed Apr 29, 2024
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