summaryrefslogtreecommitdiff
path: root/editor/editor_path.cpp
diff options
context:
space:
mode:
authorYuri Sizov <11782833+YuriSizov@users.noreply.github.com>2023-03-27 20:14:47 +0200
committerGitHub <noreply@github.com>2023-03-27 20:14:47 +0200
commit19501f8eb19481b029f67ecf78e711d42f2fc431 (patch)
tree933ea3320b35bce6ba65ab1e1d1aa8ad662c90d4 /editor/editor_path.cpp
parentcacf49999e3fb37281d66cc591ca8bebc5712d4d (diff)
parent843f5adbc523ad2511322b4f09b5ce5a3fb9e225 (diff)
Merge pull request #75397 from YuriSizov/4.0-cherrypicks
Cherry-picks for the 4.0 branch (future 4.0.2) - 1st batch
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;