https://bugs.documentfoundation.org/show_bug.cgi?id=101627

--- Comment #7 from Jan-Marek Glogowski <glo...@fbihome.de> ---
I added the following line to the "shrink code" from bug 91260
(sw/source/core/objectpositioning/anchoredobjectposition.cxx:503):

SAL_DEBUG( "bCheckBottom: " << bCheckBottom << " => " << aSize.GetHeight() << "
- ( " 
           << nProposedRelPosY << " - " << nAdjustedRelPosY << " ) => " <<
nShrinked );

For the attached document of bug 91260 it results in:

bCheckBottom: 1 => 6191 - ( 12442 - 8209 ) => 1958

For the attached document from this bug it results in:

bCheckBottom: 1 => 264 - ( 2 - -207 ) => 55

My guess it the code doesn't handle the negative "nAdjustedRelPosY" correctly.
In relation to  bCheckBottom, negative nAdjustedRelPosY are probably just fine,
as long as the top won't run out of the page top, which would shrink the frame
from the top.

Now while it's now possible to load the document from bug 91260 correctly I
can't move the frame correctly out of any other then the left border. So I
couldn't create a test document with a text box frame outside the top to verify
my guesswork.

Would be nice to have a test document with four frames, each overlapping one of
the page borders at some point, but I guess that's an other bug / enhancement…

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to