浏览代码

Merge pull request #105226 from bruvzg/vs_popup

Fix visual shader editor popups not using editor scale.
Thaddeus Crews 5 月之前
父节点
当前提交
c85e12223d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/plugins/visual_shader_editor_plugin.cpp

+ 1 - 1
editor/plugins/visual_shader_editor_plugin.cpp

@@ -3315,7 +3315,7 @@ void VisualShaderEditor::_edit_port_default_input(Object *p_button, int p_node,
 			popup_pref_size.width = 180;
 			break;
 	}
-	property_editor_popup->set_min_size(popup_pref_size);
+	property_editor_popup->set_min_size(popup_pref_size * EDSCALE);
 
 	property_editor->set_object_and_property(edited_property_holder.ptr(), "edited_property");
 	property_editor->update_property();