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

--- Comment #4 from Hossein <[email protected]> ---
(In reply to Mike Kaganski from comment #3)
> I am unsure if it must be the same *on screen* - because it *might* be
> reasonable to use a different width for the side panel where the comments
> are displayed (?); however:
The code that computes the width and height of the yellow box is actually
shared in screen and output, and it is dependent on DPI, and also zoom level!

SwAnnotationWin::SetPosSizePixelRect() affects both display and print. It is
called in SwPostItMgr::LayoutPostIts(), in which its calculations are dependent
on DPI. SwPostItMgr::GetSidebarWidth() calculates the width, which is DPI
dependent.

Also, height of the yellow box is DPI and Zoom dependent.
SwAnnotationWin::GetMinimumSizeWithoutMeta() makes the height calculations zoom
dependent.

If you increase/decrease the zoom level, you will see the height of the yellow
box changing, and this is also visible in the PDF output.

> 1. It definitely should be the same in PDF, because it has the same size for
> the side comments area, and other elements, like font, are the same - so it
> looks like no re-layouting of comments is happening for PDF output;
As I've said, the code that calculates the yellow box rectangle is shared
between screen and print.
> 2. At least with 150%, the *screen* appearance of the (narrower) comments is
> *erratic*: the wrapped line overlaps the following author/date lines, and is
> thus hidden; the box does not expand vertically properly, even when you
> delete and then re-type that text.
Yeah, the calculation of the yellow box is visibly wrong.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to