Issue 27878 - page width > 640mm forces short header left-aligned
Summary: page width > 640mm forces short header left-aligned
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1.1
Hardware: PC Linux, all
: P3 Trivial with 6 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
: 68306 106078 107133 (view as issue list)
Depends on:
Blocks:
 
Reported: 2004-04-16 09:47 UTC by antares
Modified: 2013-08-07 14:38 UTC (History)
3 users (show)

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


Attachments
The demonstrates the alignment problem. (6.89 KB, application/vnd.sun.xml.writer)
2007-11-13 18:45 UTC, starfoxccc
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description antares 2004-04-16 09:47:12 UTC
For a page width of > 640mm (e.g. A0), alignments have no effect in the header.
It is always left-aligned.

This applies to a short header word. By adding characters the header at some
specific length (I didn't count) switches to the correct alignment.
Comment 1 antares 2004-04-19 08:28:35 UTC
The behavior is not bound to the header.
Comment 2 mci 2004-04-19 16:44:49 UTC
Hi antares,

thanks for using and supporting openOffice.org...

I tried this with OOo1.1.2RC and with 680m34 and the described effect appeared
in both version...

reassigned to fme...

@fme: 
Hi fme, I think this could be something for you. Please take over and /or
dispatch if this isn't anyything for you...
The effect appeared in 2 cases:
   - using words shorter than 4 characters 
   - fontsize smaller and /or equal 12

Thanks
Comment 3 lohmaier 2006-08-09 23:52:59 UTC
*** Issue 68306 has been marked as a duplicate of this issue. ***
Comment 4 Joe Smith 2006-08-15 02:41:22 UTC
You guys probably know this already, but this looks suspiciously like a 16-bit
integer overflow. With my sample doc on Issue 68306, using a page width of 30"
with 0.79" margins, the threshold for a properly aligned string seems to be
about 5.6". The horizontal offset would be:

page text area width - string width / 2

30.0"-0.79"-0.79"-5.6" = 22.82" / 2

22.82" is 32861 twips, or a large negative value if stored as a signed 16-bit int.

The same calculation would be done for right-alignment, which fails in the same way.

If this is correct, the problem should never occur on pages with a page text
area width of less than 22.75" (32767 twips).
Comment 5 starfoxccc 2007-11-13 18:44:12 UTC
I am having the same problem. I am attempting to create a large poster file (40
in x 30 in), and I cannot center the title.

I am using 80 pt font.

With 33 characters, it will not center or right align. However, with 34 or more,
it will.

I have a attached a sample file. The first phrase contains 33 characters, and
the second contains 34.

The margins are default (0.79 inches all around).

It would be great if this could be fixed relatively soon, as this can be a
deal-breaker for some people who want to use OOoWriter.
Comment 6 starfoxccc 2007-11-13 18:45:30 UTC
Created attachment 49637 [details]
The demonstrates the alignment problem.
Comment 7 starfoxccc 2007-11-13 18:55:52 UTC
forgot to add that I am using version 2.2.1
Comment 8 Joe Smith 2007-11-21 15:37:22 UTC
starfoxccc: The workaround for this is to use Draw for large-format documents.
Draw will accept page sizes up to 3mx3m, or you can create the document at a
smaller size and scale it up to the paper size when you print.
Comment 9 openmarkp 2009-03-22 08:16:46 UTC
This is still a problem in writer 3.0. The work around mentioned using Draw
won't work if you need to use mailmerge. This problem also occurs in frames. You
can make the frame expand and you won't have the problem on the first  line. But
if you go into two lines when the frame expands the second line will be left
justified and the first line centered (if the second line leaves the 22.8"
combined left and right spacing.
Comment 10 michael.ruess 2009-10-20 11:37:14 UTC
*** Issue 106078 has been marked as a duplicate of this issue. ***
Comment 11 sanders_muc 2009-11-22 09:56:22 UTC
Bug still present in OpenOffice 3.1.0.

I observe precisely the same effect that starfoxccc has described.

A simple work-around, by the way, is to pad the text with the same number of
spaces to either end to make the line long enough to avoid the overflow.
Comment 12 michael.ruess 2009-11-23 13:23:06 UTC
*** Issue 107133 has been marked as a duplicate of this issue. ***