Open 20milliliter opened 2 years ago
3.4.4.stable
Windows 10, GLES3, Radeon RX 580 (22.5.2)
Calling set_anchors_and_margins_preset (or similar methods) in _enter_tree doesn't correctly set the margins.
set_anchors_and_margins_preset
_enter_tree
CustomNode
resize_trigger
_process
Bug.zip
This is basically the same as #24859, which was resolved with a warning. But looks like this case is not covered.
Godot version
3.4.4.stable
System information
Windows 10, GLES3, Radeon RX 580 (22.5.2)
Issue description
Calling
set_anchors_and_margins_preset
(or similar methods) in_enter_tree
doesn't correctly set the margins.Steps to reproduce
CustomNode
to scene.set_anchors_and_margins_preset
was called, the panel location is not correct.resize_trigger
variable export on the node, runningset_anchors_and_margins_preset
instead within_process
.Minimal reproduction project
Bug.zip