diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-10-24 13:22:51 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-10-24 13:22:51 -0500 |
commit | 7974ba57e91154b5e24b718bbd71eb5c3b64f26b (patch) | |
tree | 1dc01179d254fdf33035ce05616c633b2d5a49ac | |
parent | b9e8e5452139381cc9969337ad5e2a6270d8dfbb (diff) | |
parent | 4e916f1fd97d6b416c80ed6bdb685086c3f95dff (diff) | |
download | redot-engine-7974ba57e91154b5e24b718bbd71eb5c3b64f26b.tar.gz |
Merge pull request #97199 from shahriarlabib000/popup
Fix `Sprite2D` dialog size for smaller screen device
-rw-r--r-- | editor/plugins/sprite_2d_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/sprite_2d_editor_plugin.cpp b/editor/plugins/sprite_2d_editor_plugin.cpp index c7db243662..5333e10b56 100644 --- a/editor/plugins/sprite_2d_editor_plugin.cpp +++ b/editor/plugins/sprite_2d_editor_plugin.cpp @@ -593,12 +593,12 @@ Sprite2DEditor::Sprite2DEditor() { add_child(err_dialog); debug_uv_dialog = memnew(ConfirmationDialog); + debug_uv_dialog->set_size(Size2(960, 540) * EDSCALE); VBoxContainer *vb = memnew(VBoxContainer); debug_uv_dialog->add_child(vb); debug_uv = memnew(Panel); debug_uv->connect(SceneStringName(gui_input), callable_mp(this, &Sprite2DEditor::_debug_uv_input)); debug_uv->connect(SceneStringName(draw), callable_mp(this, &Sprite2DEditor::_debug_uv_draw)); - debug_uv->set_custom_minimum_size(Size2(800, 500) * EDSCALE); debug_uv->set_clip_contents(true); vb->add_margin_child(TTR("Preview:"), debug_uv, true); |