<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Suspicious property 'AnchorPosition'"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124534">124534</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Suspicious property 'AnchorPosition'
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rb.henschel@t-online.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=150516" name="attach_150516" title="Example file with macro to examine the shape properties">attachment 150516</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=150516&action=edit" title="Example file with macro to examine the shape properties">[details]</a></span>
Example file with macro to examine the shape properties

If you inspect a shape via macro, you will find the property "AnchorPosition".
I see these problems:

1) If you change the zoom, you get different values for the X coordinate but
not for the Y coordinate.

2) 'AnchorPosition' exists in the API only for legend, but not for shapes.

3) The values in AnchorPosition make no sense.

Expected behavior:

The values in AnchorPosition are in unit 1/100 mm, same as all other values.

The values in AnchorPosition are independent from zoom.

'AnchorPosition' + 'Position' = 'Left or 'Top' respectively, so that 'Left' and
'Top' describe the distance from the page edge.

Type 'Anchor to page' results in 'AnchorPosition' (0|0).


The attached file contains the macro FrameRectWriter, which works on a selected
shape. You can use it to examine the current behavior.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>