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

Fixed Size Node (vertical) #295

Open
soufianekhiat opened this issue May 22, 2024 · 0 comments
Open

Fixed Size Node (vertical) #295

soufianekhiat opened this issue May 22, 2024 · 0 comments

Comments

@soufianekhiat
Copy link

soufianekhiat commented May 22, 2024

Hello,
How can we achieve a fixed size node independently of the inputs/outputs pins?
With basic centered text and proper grid_snapping.
image

Current workaround, at the level of the content_frame, do not fix the "vertical centered text" and proper snapping:

if ( uInCount > 0 )
	fNodeHeight -= padding_y;
if ( uOutCount > 0 )
	fNodeHeight -= padding_y;
ImGui::BeginHorizontal( "content_frame", ImVec2( fNodeWidth, fNodeHeight ) );
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

1 participant