### Godot version

4.1 dev3

### System information

W10

### Issue description

The button is pushed to the far right. Maybe it tries to escape, idk.

![image](https://github.com/godotengine/godot/assets/2223172/becb32f6-f725-4564-952e-946ec544c376)

It used to be more to the left. Not sure when it changed.

Seems correct in 4.0.3

![image](https://github.com/godotengine/godot/assets/2223172/3e3d206a-481d-415a-acb4-40cbf4a60fc0)


### Steps to reproduce

1. Add TileMap
2. Look to the right

### Minimal reproduction project

N/A
Ref<Texture2D> texture = tile_set_atlas_source->get_texture();
	if (texture.is_valid()) {
		Vector2i margins = tile_set_atlas_source->get_margins();
		Vector2i separation = tile_set_atlas_source->get_separation();
		Vector2i texture_region_size = tile_set_atlas_source->get_texture_region_size();
		Size2i grid_size = tile_set_atlas_source->get_atlas_grid_size();
		
		for (int x = 0; x < grid_size.x; x++) {
			for (int y = 0; y < grid_size.y; y++) {
				Vector2i origin = margins + (Vector2i(x, y) * (texture_region_size + separation));
				Vector2i base_tile_coords = tile_set_atlas_source->get_tile_at_coords(Vector2i(x, y));
				if (base_tile_coords != TileSetSource::INVALID_ATLAS_COORDS) {
					if (base_tile_coords == Vector2i(x, y)) {
						
						Vector2i size_in_atlas = tile_set_atlas_source->get_tile_size_in_atlas(base_tile_coords);
						Vector2 region_size = texture_region_size * size_in_atlas + separation * (size_in_atlas - Vector2i(1, 1));
						base_tiles_texture_grid->draw_rect(Rect2i(origin, region_size), Color(1.0, 1.0, 1.0, 0.8), false);
					}
				} else {
					
					base_tiles_texture_grid->draw_rect(Rect2i(origin, texture_region_size), Color(0.7, 0.7, 0.7, 0.1), false);
				}
			}
		}
	}
}
void TileAtlasView::_draw_base_tiles_shape_grid() {