Ver Fonte

Fix description size in "New Node" dialog

Michael Alexsander Silva Dias há 6 anos atrás
pai
commit
fe893bd6ef
2 ficheiros alterados com 3 adições e 2 exclusões
  1. 1 0
      editor/editor_help.cpp
  2. 2 2
      editor/editor_help.h

+ 1 - 0
editor/editor_help.cpp

@@ -1511,6 +1511,7 @@ EditorHelpBit::EditorHelpBit() {
 	rich_text->connect("meta_clicked", this, "_meta_clicked");
 	rich_text->add_color_override("selection_color", EditorSettings::get_singleton()->get("text_editor/theme/selection_color"));
 	rich_text->set_override_selected_font_color(false);
+	set_custom_minimum_size(Size2(0, 70 * EDSCALE));
 }
 
 FindBar::FindBar() {

+ 2 - 2
editor/editor_help.h

@@ -188,9 +188,9 @@ public:
 	~EditorHelp();
 };
 
-class EditorHelpBit : public MarginContainer {
+class EditorHelpBit : public PanelContainer {
 
-	GDCLASS(EditorHelpBit, MarginContainer);
+	GDCLASS(EditorHelpBit, PanelContainer);
 
 	RichTextLabel *rich_text;
 	void _go_to_help(String p_what);