diff options
author | ProbablyWorks <ProbablyWorksProductions@gmail.com> | 2023-05-31 21:22:04 -0400 |
---|---|---|
committer | ProbablyWorks <ProbablyWorksProductions@gmail.com> | 2023-06-01 21:44:16 -0400 |
commit | 882ffdfaae6b15d94549ee7ce5cc24f20e557938 (patch) | |
tree | c856a9a3fab18cf917a70b25e89f24310d220ed9 | |
parent | 5c2295ff538312884115c2b7a3aec1e301b8b954 (diff) | |
download | redot-engine-882ffdfaae6b15d94549ee7ce5cc24f20e557938.tar.gz |
set the grow direction of the center view button after setting the anchors
-rw-r--r-- | editor/plugins/tiles/tile_atlas_view.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/tiles/tile_atlas_view.cpp b/editor/plugins/tiles/tile_atlas_view.cpp index 1e62d60619..b1118384a3 100644 --- a/editor/plugins/tiles/tile_atlas_view.cpp +++ b/editor/plugins/tiles/tile_atlas_view.cpp @@ -580,6 +580,7 @@ TileAtlasView::TileAtlasView() { button_center_view = memnew(Button); button_center_view->set_anchors_and_offsets_preset(Control::PRESET_TOP_RIGHT, Control::PRESET_MODE_MINSIZE, 5); + button_center_view->set_grow_direction_preset(Control::PRESET_TOP_RIGHT); button_center_view->connect("pressed", callable_mp(this, &TileAtlasView::_center_view)); button_center_view->set_flat(true); button_center_view->set_disabled(true); |