mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 05:39:58 +00:00
Fix property height in the inspector for control layout
This commit is contained in:
parent
78d91947f6
commit
c01711ca16
1 changed files with 2 additions and 0 deletions
|
|
@ -244,6 +244,7 @@ EditorPropertyAnchorsPreset::EditorPropertyAnchorsPreset() {
|
|||
options = memnew(OptionButton);
|
||||
options->set_clip_text(true);
|
||||
options->set_flat(true);
|
||||
options->set_theme_type_variation(SNAME("EditorInspectorButton"));
|
||||
add_child(options);
|
||||
add_focusable(options);
|
||||
options->connect(SceneStringName(item_selected), callable_mp(this, &EditorPropertyAnchorsPreset::_option_selected));
|
||||
|
|
@ -426,6 +427,7 @@ EditorPropertySizeFlags::EditorPropertySizeFlags() {
|
|||
flag_presets = memnew(OptionButton);
|
||||
flag_presets->set_clip_text(true);
|
||||
flag_presets->set_flat(true);
|
||||
flag_presets->set_theme_type_variation(SNAME("EditorInspectorButton"));
|
||||
vb->add_child(flag_presets);
|
||||
add_focusable(flag_presets);
|
||||
set_label_reference(flag_presets);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue