Apache OpenOffice (AOO) Bugzilla – Issue 87354
Center and right alignment do not work in wide frames/pages
Last modified: 2013-08-07 14:38:26 UTC
Centering and right-aligning text do not work in headers, page text areas, or frames over about 24" wide. The text remains left aligned despite changing the alignment to right or center. Tested on: OpenOffice.org 2.3.0 Ubuntu Gutsy Gibbon i386 32bit OpenOffice.org 2.3.1 Windows Vista 32bit How to produce the bug (not entirely minimal): Open a new Writer document. Right click in the page area Page... Click the Page tab Select the following: Landcape Width: 92" Height: 44" Set all margins to 1" In the header tab: Header On Height: 4" Type something in the header Click the Center button The text will not center (or right align) Type in the text area of the main text: sadfsadfdsa Select this text and Insert>Frame... Center the text Change the width of the frame to 24", the text will not be centered It might be a higher or lower width, I'm not sure how much this has to do with font metrics. It'll center up to 23.65" in 2.3.0 on Ubuntu.
After playing around with this some more I discovered it is related to the width of the text itself as well as the box. Wider peices of text will center in a box. Attached is an example file that wouldn't center correctly, and a screenshot of what it looks like.
Created attachment 52254 [details] Test of text failing to center. I have no reason to believe passing this particular test would indicate the bug is fixed, since the widths of things are very close to where the centering breaks down.
Created attachment 52255 [details] What the above looks like in 2.3.0
MRU->FME: see attached document. The text is aligned to the left border, though the format claims "centered". Changing the page size to A3 "fixes" this.
Seems to be a duplicate of bug #27878.
*** Issue 113517 has been marked as a duplicate of this issue. ***