[Libreoffice-bugs] [Bug 144608] Cannot use paragraph alignment in text box together with text anchor

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Sep 21 09:39:23 UTC 2021


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

--- Comment #6 from sergio.callegari at gmail.com ---
> ... the text anchor (TA) overwrites the paragraph alignment (PA). And doesn't it make sense given that you want to place the text at the lower right border, for example, to not use left alignment?

I don't think it is sensible, because they are two different things with
different purposes.  The anchor is meant to define how the text box should grow
to accommodate more text when this is needed. The paragraph alignment is there
to say how the text should be aligned within the current text box boundaries.

Even if it may look marginal, there may well be cases where you want the anchor
on one side and the alignment from the opposite one. For instance you may want
a text box predefined with a certain width where the text is left aligned, but
such that — if the text becomes too wide — the box grows to the left mantaining
its right boundary at a fixed position. For instance this may happen because
the right boundary is on the right page boundary so rather than having the text
go off the page you are willing to accept an alignment change on the left side.

As already said, another issue is that the current behavior makes it impossible
to have a text box with multiple paragraphs where the paragraphs take different
alignments (e.g., first paragraph to the left, second one centered, third one
again to the left). To be more correct, that is perfectly possible, provided
you do not touch the text anchors. Once you have touched them for that text box
it is not possible anymore, so if you need that then you have to erase the text
box and make a new one.

See the attached example document, where there are two text boxes. In each of
them there are three paragraphs: the first one is left aligned, the second one
is centered, the third one is right aligned. The box on the top looks fine. For
the box on the bottom, the text anchor has been set and the box looks
completely wrong. The paragraph that should be right aligned is left aligned
and the paragraph that should be centered is weirdly spaced from the left.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210921/310cc45f/attachment.htm>


More information about the Libreoffice-bugs mailing list