How to anchor elements that they aren't in the same parent or sibling ?
-
Not possible. You can anchor only to parent or sibling. If u want anchor it, change the parent & do necessary anchoring.
-
@dheerendra But I can't change the parent...
-
Then you can't anchor it. Use other layout mechanism to achieve your requirement.
-
@Eeli-K So I don't know what to do except describing you what I want or maybe I can send you the source code compile it and see what I want ?
But anyway imagine just you have a rectangle and you have a Text under it at approximatively 2/5 of the width of the rectangle. So I want to anchor a text that is inside the rectangle with the left or right of the Text under the Rectangle. -
@Arkning Got it. So do it like this, put both texts inside the Rectangle, the Rectangle being the parent of both. Then you want one text to be under the rectangle, so use a anchor with a negative value. That should work.
Regarding the link to the image not working, I think its currently a bug on the forum, you should use a external service like https://imagebin.ca/ or something similar, and just paste the link of the image here.