Issue 87354 - Center and right alignment do not work in wide frames/pages
Summary: Center and right alignment do not work in wide frames/pages
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.3.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 113517 (view as issue list)
Depends on:
Blocks:
 
Reported: 2008-03-23 22:13 UTC by cedricshock
Modified: 2013-08-07 14:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
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. (7.81 KB, application/vnd.oasis.opendocument.text)
2008-03-23 22:24 UTC, cedricshock
no flags Details
What the above looks like in 2.3.0 (92.73 KB, image/png)
2008-03-23 22:24 UTC, cedricshock
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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. ***