diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-03-21 16:00:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 16:00:07 +0100 |
commit | ce90d77a1857e9cee4b7571258d6e917bf4ba268 (patch) | |
tree | e5de81cedafb90d69b15495439b20f08e87f0c08 /scene/gui/graph_node.cpp | |
parent | 0067578b5ba48be812b9c74421867ceba1bbc330 (diff) | |
parent | c567a853db43c7c3ac463f775373ca65f98f0896 (diff) | |
download | redot-engine-ce90d77a1857e9cee4b7571258d6e917bf4ba268.tar.gz |
Merge pull request #73800 from YeldhamDev/graph_resize_fix
Fix `GraphNode` resizing when its bottom border is too thin
Diffstat (limited to 'scene/gui/graph_node.cpp')
-rw-r--r-- | scene/gui/graph_node.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/gui/graph_node.cpp b/scene/gui/graph_node.cpp index f8d2ff0d2c..7d9cdd62ff 100644 --- a/scene/gui/graph_node.cpp +++ b/scene/gui/graph_node.cpp @@ -805,13 +805,13 @@ void GraphNode::_connpos_update() { Size2i size = c->get_rect().size; int y = sb->get_margin(SIDE_TOP) + vofs; - int h = size.y; + int h = size.height; if (slot_info.has(idx)) { if (slot_info[idx].enable_left) { PortCache cc; cc.position = Point2i(edgeofs, y + h / 2); - cc.height = size.height; + cc.height = h; cc.slot_idx = idx; cc.type = slot_info[idx].type_left; @@ -822,7 +822,7 @@ void GraphNode::_connpos_update() { if (slot_info[idx].enable_right) { PortCache cc; cc.position = Point2i(get_size().width - edgeofs, y + h / 2); - cc.height = size.height; + cc.height = h; cc.slot_idx = idx; cc.type = slot_info[idx].type_right; @@ -833,7 +833,7 @@ void GraphNode::_connpos_update() { } vofs += sep; - vofs += size.y; + vofs += h; idx++; } |