### Godot version

4.0 beta 11

### System information

Windows 10

### Issue description

Anchors presets are ignored, sometimes they work if you manually modify the size of the node using the handles.

### Steps to reproduce

Simple test, open new scene, base node is Control, try to set the full rect preset, nothing happens. then just try out different stuff with different nodes and hierarchies, it barely works.

### Minimal reproduction project

.
return data.pos_cache;
}
void Control::_set_global_position(const Point2 &p_point) {
	set_global_position(p_point);
}
void Control::set_global_position(const Point2 &p_point, bool p_keep_offsets) {
	Transform2D inv;
	if (data.parent_canvas_item) {
		inv = data.parent_canvas_item->get_global_transform().affine_inverse();
	}
	set_position(inv.xform(p_point), p_keep_offsets);
}
Point2 Control::get_global_position() const {
	return get_global_transform().get_origin();
}
Point2 Control::get_screen_position() const {
	ERR_FAIL_COND_V(!is_inside_tree(), Point2());
	Point2 global_pos = get_global_transform_with_canvas().get_origin();
	Window *w = Object::cast_to<Window>(get_viewport());
	if (w && !w->is_embedding_subwindows()) {
		global_pos += w->get_position();
	}
	return global_pos;
}
void Control::_set_size(const Size2 &p_size) {