Ver Fonte

set the grow direction of the center view button after setting the anchors

ProbablyWorks há 2 anos atrás
pai
commit
882ffdfaae
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      editor/plugins/tiles/tile_atlas_view.cpp

+ 1 - 0
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);