瀏覽代碼

Fix GraphNode not resizing with larger title

Marc Gilleron 3 年之前
父節點
當前提交
79c6d7ad7f
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      scene/gui/graph_node.cpp

+ 0 - 1
scene/gui/graph_node.cpp

@@ -393,7 +393,6 @@ void GraphNode::_notification(int p_what) {
 				w -= close->get_width();
 				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);
 			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) {
 			if (show_close) {
 				Vector2 cpos = Point2(w + sb->get_margin(SIDE_LEFT) + close_h_offset, -close->get_height() + close_offset);
 				Vector2 cpos = Point2(w + sb->get_margin(SIDE_LEFT) + close_h_offset, -close->get_height() + close_offset);