title: How to keep the top-right position of QML item when its size is changing?
body: <p>I have a toolbar that can be moved (by drag). Depending on the context the content of this toolbar will change, and its size will change accordingly.</p>
  
  <p>My problem is, when the size is changing, the top-left position remains the same and the right border is moving (default and normal behaviour). But I want the top-right position to remain the same and the left border to move instead.</p>
  
  <p><a href="https://i.stack.imgur.com/V6CoV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V6CoV.png" alt="illustration"></a></p>
  
  <p>From screen 1 to 2 the toolbar gets smaller, and is shown like the blue rectangle. I want it to be placed like the red rectangle.</p>
  
  <p>How can I achieve this ? Without anchoring on the right of the screen, because the toolbar is movable.</p>