imgui-node-editor icon indicating copy to clipboard operation
imgui-node-editor copied to clipboard

Fixed Size Node (vertical)

Open soufianekhiat opened this issue 1 year ago • 0 comments

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 ) );

soufianekhiat avatar May 22 '24 22:05 soufianekhiat