Bug 141346 - Horizontal alignment doesn't work on custom (massive) page dimensions
Summary: Horizontal alignment doesn't work on custom (massive) page dimensions
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paragraph-Alignment
  Show dependency treegraph
 
Reported: 2021-03-30 14:16 UTC by anonimou_eu
Modified: 2024-09-26 15:19 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
File with right alignment not working on custom page size (8.08 KB, application/vnd.oasis.opendocument.text)
2021-03-30 14:17 UTC, anonimou_eu
Details
Flat ODF of a wide page with "end" (i.e. Right) aligned text (28.10 KB, application/vnd.oasis.opendocument.text)
2021-03-30 15:59 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anonimou_eu 2021-03-30 14:16:47 UTC
Description:
Description:
When using custom page dimensions, horizontal alignment (right and center) doesn't work.

After trying many values, 119.5 cm for page width works. 119.6cm and over doesn't.

Just set a custom page width (65cm) and try to set alignment to center.


Steps to Reproduce:
1. Format > Page Style > Page
2. Change width to 170cm (greater than 119,5cm), for example. Apply
3. Write some custom text. Change alignment to center or right.

Actual Results:
The text is aligned to a page size that is NOT the custom page size, be it center or right aligned. Also, on page at 119.6cm, it compress all at the left side.


Expected Results:
The text was supposed to align center or right.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
This is a "continuation" bug of id=120618 where, there, alignment stopped working at all. Now, it works, but to a size that doesn't match the right page size.
Comment 1 anonimou_eu 2021-03-30 14:17:34 UTC
Created attachment 170834 [details]
File with right alignment not working on custom page size
Comment 2 V Stuart Foote 2021-03-30 15:55:56 UTC
confirmed 

Version: 7.1.1.2 (x64) / LibreOffice Community
Build ID: fe0b08f4af1bacafe4c7ecc87ce55bb426164676
CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL


Saving to .fodt, paragraphs with text runs are being assigned correctly with style:paragraph-properties fo:text-align="end" (LTR - RTL contexts).

style:page-layout-properties fo:page-width="66.9291in"

Created new documents and tested various widths, at 47.08" "end" paragraph alignment (i.e. Right in my locale) worked, at 47.10" it failed.
Comment 3 V Stuart Foote 2021-03-30 15:59:20 UTC
Created attachment 170838 [details]
Flat ODF of a wide page with "end" (i.e. Right) aligned text

Increasing page width by .02" to 47.10" throws the text back to the left starting edge.
Comment 4 Stephan Bergmann 2021-03-31 06:26:17 UTC
@V Stuart Foote: any specific reason you added me to CC?
Comment 5 Justin L 2021-03-31 06:47:00 UTC
(In reply to Stephan Bergmann from comment #4)
> @V Stuart Foote: any specific reason you added me to CC?

That was probably done because you happened to fix parent bug 120618 comment 9
Author: Stephan Bergmann   Mon Feb 25 16:44:19 2019 +0100
    SwGluePortion::GetPrtGlue() can legitimately be larger than 'short`
Comment 6 V Stuart Foote 2021-03-31 13:17:56 UTC
(In reply to Justin L from comment #5)
> (In reply to Stephan Bergmann from comment #4)
> > @V Stuart Foote: any specific reason you added me to CC?
> 
> That was probably done because you happened to fix parent bug 120618 comment
> 9
> Author: Stephan Bergmann   Mon Feb 25 16:44:19 2019 +0100
>     SwGluePortion::GetPrtGlue() can legitimately be larger than 'short`

Yes, that was my intent.
Comment 7 QA Administrators 2023-04-01 03:23:31 UTC Comment hidden (obsolete)
Comment 8 anonimou_eu 2023-04-02 18:07:59 UTC
Issue persists.

Version 7.5.1.2
Comment 9 Buovjaga 2024-09-26 15:19:05 UTC
Repro with 7.1, not with master, so closing.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 12e08b3cba0e75f1bd3a42f30e4830d723b24ece
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 25 September 2024