Bug 120618 - Horizontal alignment doesn't work on custom (massive) page dimensions
Summary: Horizontal alignment doesn't work on custom (massive) page dimensions
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-15 14:21 UTC by anonimou_eu
Modified: 2021-03-30 15:55 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
page size at 72.21cm showing right align para at left (25.38 KB, application/vnd.oasis.opendocument.text)
2018-10-15 21:55 UTC, V Stuart Foote
Details
Page alligment center with width of 120cm (86.71 KB, image/png)
2019-10-17 10:04 UTC, anonimou_eu
Details
Page allignment with 135cm (86.35 KB, image/png)
2019-10-17 10:04 UTC, anonimou_eu
Details

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

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

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

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

Actual Results:
The text will continue left aligned.

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


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 6.1.2.1
Build ID: 1:6.1.2~rc1-0ubuntu0.18.04.1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: pt-BR (pt_BR.UTF-8); Calc: group threaded
Comment 1 V Stuart Foote 2018-10-15 21:54:21 UTC
Confirmed on Windows 10 Ent 64-bit en-US with
Version: 6.2.0.0.alpha0+ (x64)
Build ID: 5f5d890c242b8a092804991dba809f6f4287cfb2
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-10-03_23:04:03
Locale: en-US (en_US); Calc: CL

Here the toggle was at 72.20cm -> 72.21cm, with a height of 27.94cm

Paragraph formatted to align Right would still show the direct formatting--but would jump to left margin when rendered to canvas when page size crosses the threshold.

Document (.fodt attached) saved from master/6.2.0 continues the misalignment when opened with 6.1.1.2

Weird!
Comment 2 V Stuart Foote 2018-10-15 21:55:57 UTC
Created attachment 145748 [details]
page size at 72.21cm showing right align para at left

reduce the page size by .01cm and the right align para moves to correct position
Comment 3 Xisco Faulí 2018-10-16 15:50:17 UTC
Also reproduced in

Version: 5.2.0.0.alpha0+
Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53
Threads 4; Ver: 4.10; Render: default; 

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 4 Xisco Faulí 2018-10-16 15:50:52 UTC
@Justin, I thought you could be interested in this issue...
Comment 5 QA Administrators 2019-10-17 02:37:24 UTC Comment hidden (obsolete)
Comment 6 anonimou_eu 2019-10-17 10:04:23 UTC
Created attachment 155060 [details]
Page alligment center with width of 120cm
Comment 7 anonimou_eu 2019-10-17 10:04:57 UTC
Created attachment 155061 [details]
Page allignment with 135cm
Comment 8 anonimou_eu 2019-10-17 10:06:47 UTC
This bug seems to be partially fixed. Kind of.

Now, I could get up to 120cm on width. It works then. It now does work on other page widths, with other behavior. 
With widths higher than 120cm, it seems that the page collapses to just a few cms, leaving the whole page unused. (See attachment - First pic with 129 cm and the second with 135cm).

Note that it tries to allign to some page width which is not the one set on configurations.

Before, it would just not set the alligment and leave it left alligned. Now, it does the alligment but to some not set page width.
Comment 9 Justin L 2020-03-07 15:52:07 UTC
(In reply to anonimou_eu from comment #8)
> This bug seems to be partially fixed. Kind of.
This was done for LO 6.3 with commit 60c121981d829ef322718a69900a1585e87efb84
Author: Stephan Bergmann   Mon Feb 25 16:44:19 2019 +0100
    SwGluePortion::GetPrtGlue() can legitimately be larger than 'short`
Comment 10 Justin L 2021-03-26 18:42:54 UTC
It is not clear to me what is still needed. Please treat it as a new bug report - giving full steps to reproduce and an example document that highlights the remaining problem.
Comment 11 anonimou_eu 2021-03-30 14:18:15 UTC
Closing this and opened 141346
Comment 12 anonimou_eu 2021-03-30 14:18:16 UTC Comment hidden (obsolete)
Comment 13 V Stuart Foote 2021-03-30 15:32:35 UTC
As Justin notes comment 9 [1], too wide canvas is handled better, and alignment mostly functions.

Remaining alignment issues on large custom page sizes in see also bug 141346

=-ref-=
[1] https://gerrit.libreoffice.org/68253