<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FORMATTING: Images attached to cell get mispositioned when spreadsheet is edited"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=63368#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FORMATTING: Images attached to cell get mispositioned when spreadsheet is edited"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=63368">bug 63368</a>
from <span class="vcard"><a class="email" href="mailto:sergio.callegari@gmail.com" title="sergio.callegari@gmail.com">sergio.callegari@gmail.com</a>
</span></b>
<pre>Improved, but still a bit buggy in LibO 6.2.0 RC 1.
Test case to have an issue needs to be slightly changed to still show the buggy
behaviour
Test case (again with <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=80018" name="attach_80018" title="Test case">attachment 80018</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=80018&action=edit" title="Test case">[details]</a></span>)
1) Open attached document
2) Note that the cloud image is anchored to cell B2, and placed in such a way
that the top of the cloud is about half-way in row 2.
3) Now, select row 1 and insert a row before row 1. This works: the cloud
correctly moves down, since it remains still relative to its anchor point (now
cell B3). Now the top of the cloud is about half-way in row 3.
4) Put your cursor in cell A2 at the end of the world "Foo", press CTRL-ENTER
to insert a line break and type "Bar". This is broken in LibO < 6.2 and working
(sort of) in LibO 6.2. In LibO 6.2 the cloud correctly moves down, since it
remains (almost) still relative to its anchor point (now cell B3). Now the top
of the cloud is about half-way in row 3. Actually, the behavior is still buggy,
because there must be some miscalculation and the image moves /slightly/ up
relative to its anchor point.
5) Put your cursor in cell A2 at the end of the world "Bar" and press
CTRL-ENTER 10 times. This adds 10 empty lines to cell A2 and makes evident the
miscalculation reported at the previous point 4). Now the top of the cloud is
not anymore half-way in row 3.
Note that this is not handled properly. The height of cell A2 is increased in
order to accomodate the two lines of text. This means that cell B3, to which
the cloud image is anchored moves down. However, the cloud image does not move
down, so that its relative position with respect to the anchor point is
changed. The top of the cloud should have remained about half-way in row 3, but
now it is at the bottom of row 2.</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>