Merge pull request #75379 from timothyqiu/boundary-break

Fix height of subresource button in Inspector
This commit is contained in:
Yuri Sizov 2023-03-27 11:15:24 +02:00 committed by GitHub
commit da503a6c94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

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

View file

@ -61,6 +61,8 @@ protected:
static void _bind_methods();
public:
virtual Size2 get_minimum_size() const override;
void update_path();
void clear_path();
void enable_path();