Browse Source

Merge pull request #97199 from shahriarlabib000/popup

Fix `Sprite2D` dialog size for smaller screen device
Thaddeus Crews 1 year ago
parent
commit
7974ba57e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/plugins/sprite_2d_editor_plugin.cpp

+ 1 - 1
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);