NodeGraphQt icon indicating copy to clipboard operation
NodeGraphQt copied to clipboard

Node width too large for custom widgets

Open FlorianRaichle opened this issue 1 year ago • 0 comments

Thank you for this amazing project! I have noticed a sizing issue when embedding custom widgets:

Nodes with a custom widget become too wide based on their name. Screenshot from 2024-01-26 09-38-11

The issue seems to be that the custom widget width is just added to the total width. Instead it should probably go into the calculation together with the port text width. https://github.com/jchanvfx/NodeGraphQt/blob/deaf3b1ec86dad5705bbd973d273356420eaa99c/NodeGraphQt/qgraphics/node_base.py#L394

This is based on this example using 0.6.35.

FlorianRaichle avatar Jan 26 '24 16:01 FlorianRaichle