diff options
author | Marc Gilleron <marc.gilleron@gmail.com> | 2022-04-05 21:57:54 +0100 |
---|---|---|
committer | Marc Gilleron <marc.gilleron@gmail.com> | 2022-04-05 21:57:54 +0100 |
commit | 79c6d7ad7fe7aa0c5887e2e0d14a52377616379f (patch) | |
tree | 80f45fa2fd6babd6d764bf0bbab46dee72c13f0e | |
parent | c630c2001dbe2e25e0d372bd22ce85cdc2822eb0 (diff) |
Fix GraphNode not resizing with larger title
-rw-r--r-- | scene/gui/graph_node.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scene/gui/graph_node.cpp b/scene/gui/graph_node.cpp index ef0ac75cb4..51fb26b459 100644 --- a/scene/gui/graph_node.cpp +++ b/scene/gui/graph_node.cpp @@ -393,7 +393,6 @@ void GraphNode::_notification(int p_what) { w -= close->get_width(); } - title_buf->set_width(w); title_buf->draw(get_canvas_item(), Point2(sb->get_margin(SIDE_LEFT) + title_h_offset, -title_buf->get_size().y + title_offset), title_color); if (show_close) { Vector2 cpos = Point2(w + sb->get_margin(SIDE_LEFT) + close_h_offset, -close->get_height() + close_offset); |