We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 897d41c + 21b1530 commit 281ce84Copy full SHA for 281ce84
scene/gui/control.cpp
@@ -1043,6 +1043,10 @@ int Control::_get_anchors_layout_preset() const {
1043
float top = get_anchor(SIDE_TOP);
1044
float bottom = get_anchor(SIDE_BOTTOM);
1045
1046
+ if (get_offset(SIDE_LEFT) != 0.0 || get_offset(SIDE_RIGHT) != 0.0 || get_offset(SIDE_TOP) != 0.0 || get_offset(SIDE_BOTTOM) != 0.0) {
1047
+ return -1;
1048
+ }
1049
+
1050
if (left == (float)ANCHOR_BEGIN && right == (float)ANCHOR_BEGIN && top == (float)ANCHOR_BEGIN && bottom == (float)ANCHOR_BEGIN) {
1051
return (int)LayoutPreset::PRESET_TOP_LEFT;
1052
}
0 commit comments