mirror of
https://github.com/godotengine/godot.git
synced 2024-11-12 23:24:26 +00:00
Merge pull request #97199 from shahriarlabib000/popup
Fix `Sprite2D` dialog size for smaller screen device
This commit is contained in:
commit
7974ba57e9
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user