behaviour-tree-test/tests
Filipe Alexandre Francisco Costa ca57fe1db4 Fix #100536: Control set_position resizes offsets/anchors
The set_position method computes the anchors/offsets to match a
rectangle at the given position with size "size_cache". However, when
the Control's combined minimum size is larger than the size obtained
through the offsets and anchors, "size_cache" is set to be as large as
the combined minimum size. Therefore, when position is set while the
combined minimum size is larger than the rectangle given by the anchors
and offsets, it would resize these two fields, which would then stop
the Control from shrinking when its combined minimum size decreased. To
fix this, set_position now uses the size given by the offsets and
anchors instead of the "size_cache" field. This way, the rectangle
denoted by the offsets and anchors is simply moved, without being
resized, enabling the Control to shrink automatically when its combined
minimum size decreases. I also added a test case to ensure that the
Control shrinks correctly after setting its position while it has a
larger custom minimum size than the one obtained through the offsets
and anchors.
2025-03-31 08:50:00 +01:00
..
core Merge pull request #104556 from Ivorforce/string-extend-instead-of-parse 2025-03-29 10:16:33 -05:00
data GLTFDocument test case 2025-01-06 15:53:33 -05:00
python_build SCons: Modernize shader builders 2025-03-29 11:51:54 -05:00
scene Fix #100536: Control set_position resizes offsets/anchors 2025-03-31 08:50:00 +01:00
servers [Navigation] Create a dedicated 2D navigation server 2025-03-29 12:10:50 +01:00
create_test.py Style: Integrate #pragma once in builders/checks 2025-03-07 17:32:33 -06:00
display_server_mock.h Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
SCsub SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
test_macros.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_macros.h Use initializer list in Arrays 2025-03-26 18:38:15 +01:00
test_main.cpp [Navigation] Create a dedicated 2D navigation server 2025-03-29 12:10:50 +01:00
test_main.h Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
test_tools.h Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
test_utils.cpp Use subfolder for temporary test files 2024-06-05 20:31:42 +02:00
test_utils.h Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
test_validate_testing.h Use initializer list in Arrays 2025-03-26 18:38:15 +01:00