summaryrefslogtreecommitdiff
path: root/editor/editor_path.cpp
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2023-03-27 15:06:18 +0800
committerYuri Sizov <yuris@humnom.net>2023-03-27 18:00:28 +0200
commit50ea0951fe91312488ce3556c89cb9eb38d11264 (patch)
tree3fa0029d04ae91e2054007acf6eae2806f4ff6ca /editor/editor_path.cpp
parent7de181f524a808c69f4208c98292bb94f4d446d7 (diff)
Fix height of subresource button in Inspector
(cherry picked from commit 66b325b7281fcecaa2393e900ba683f42020cd08)
Diffstat (limited to 'editor/editor_path.cpp')
-rw-r--r--editor/editor_path.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/editor_path.cpp b/editor/editor_path.cpp
index 6ae25cc224..3f425c0f0b 100644
--- a/editor/editor_path.cpp
+++ b/editor/editor_path.cpp
@@ -35,6 +35,12 @@
#include "editor/editor_scale.h"
#include "editor/multi_node_edit.h"
+Size2 EditorPath::get_minimum_size() const {
+ Ref<Font> font = get_theme_font(SNAME("font"));
+ int font_size = get_theme_font_size(SNAME("font_size"));
+ return Button::get_minimum_size() + Size2(0, font->get_height(font_size));
+}
+
void EditorPath::_add_children_to_popup(Object *p_obj, int p_depth) {
if (p_depth > 8) {
return;