Issue 87354

Summary: Center and right alignment do not work in wide frames/pages
Product: Writer Reporter: cedricshock <cedricoo>
Component: formattingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 2.3.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
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.
none
What the above looks like in 2.3.0 none

Description cedricshock 2008-03-23 22:13:21 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.
Comment 1 cedricshock 2008-03-23 22:22:00 UTC
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.
Comment 2 cedricshock 2008-03-23 22:24:02 UTC
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.
Comment 3 cedricshock 2008-03-23 22:24:49 UTC
Created attachment 52255 [details]
What the above looks like in 2.3.0
Comment 4 michael.ruess 2008-03-27 11:26:27 UTC
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.
Comment 5 sanders_muc 2009-11-22 09:51:56 UTC
Seems to be a duplicate of bug #27878.

Comment 6 michael.ruess 2010-07-29 12:58:52 UTC
*** Issue 113517 has been marked as a duplicate of this issue. ***