summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorWilliam McKIE <mckie.william@hotmail.co.uk>2017-11-10 07:31:36 +0100
committerWilliam McKIE <mckie.william@hotmail.co.uk>2017-11-10 07:31:36 +0100
commit1fc787e6acc5ea6388c189c524078c9c969b2c86 (patch)
tree9b1d81674b516c8a1a550ff210697cc15e466ebc /editor
parenta607e6125edad4d2a59c9632371118cf3fca868a (diff)
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.
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/texture_region_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
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);