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.
This commit is contained in:
William McKIE 2017-11-10 07:31:36 +01:00
parent a607e6125e
commit 1fc787e6ac

View file

@ -860,6 +860,7 @@ TextureRegionEditor::TextureRegionEditor(EditorNode *p_editor) {
hb_tools->add_child(separator); hb_tools->add_child(separator);
icon_zoom = memnew(TextureRect); icon_zoom = memnew(TextureRect);
icon_zoom->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED);
hb_tools->add_child(icon_zoom); hb_tools->add_child(icon_zoom);
zoom_out = memnew(ToolButton); zoom_out = memnew(ToolButton);