Merge pull request #59927 from Zylann/fix_graphnode_title_trim

Fix GraphNode not resizing with larger title
This commit is contained in:
Rémi Verschelde 2022-04-11 21:07:40 +02:00 committed by GitHub
commit 9d86e4f446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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