imgui-node-editor
imgui-node-editor copied to clipboard
Fixed Size Node (vertical)
Hello,
How can we achieve a fixed size node independently of the inputs/outputs pins?
With basic centered text and proper grid_snapping.
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 ) );