Closed boluoyu closed 8 months ago
Thanks for opening an issue.
The absolute-position property is actually a read-only property.
However due to a bug (already fixed in master by https://github.com/slint-ui/slint/pull/4148), we wouldn't report error.
But the next version will report an error.
It is not possible to change the position of an item by changing its absolute position.
What you can do is to assign the x and y property and substract the paren's absolute position. For example:
rec1.x = 0px - rec0.absolute-position.x;
rec1.y = 0px - rec0.absolute-position.y;
Where rec0 is the parent Rectangle
Thank you very much. I'll try
Is this a bug?