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:
parent
a607e6125e
commit
1fc787e6ac
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue