From 1fc787e6acc5ea6388c189c524078c9c969b2c86 Mon Sep 17 00:00:00 2001 From: William McKIE Date: Fri, 10 Nov 2017 07:31:36 +0100 Subject: Fix misaligned zoom icon in Texture Region Editor plugin The zoom icon was aligned on top compared to the others zoom buttons from the HBox container. Closes #12668. --- editor/plugins/texture_region_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/texture_region_editor_plugin.cpp b/editor/plugins/texture_region_editor_plugin.cpp index 8870166dba..48aed0cf6c 100644 --- a/editor/plugins/texture_region_editor_plugin.cpp +++ b/editor/plugins/texture_region_editor_plugin.cpp @@ -860,6 +860,7 @@ TextureRegionEditor::TextureRegionEditor(EditorNode *p_editor) { hb_tools->add_child(separator); icon_zoom = memnew(TextureRect); + icon_zoom->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED); hb_tools->add_child(icon_zoom); zoom_out = memnew(ToolButton); -- cgit v1.2.3