Bug 147350 - Horizontal alignment of a frame is not honored
Summary: Horizontal alignment of a frame is not honored
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Frame
  Show dependency treegraph
 
Reported: 2022-02-10 15:14 UTC by Jambunathan K
Modified: 2024-04-14 13:14 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
FrameDoesntAlignAsDictated.odt: Problematic ODT file. Problem with horizontal alignment of formula numbers (18.73 KB, application/vnd.oasis.opendocument.text)
2022-02-10 15:14 UTC, Jambunathan K
Details
AttributesOfFormulaNumberFrame1.png: Attributes of frame surrounding the number of first formula. It is aligned as configured (87.38 KB, image/png)
2022-02-10 15:17 UTC, Jambunathan K
Details
AttributesOfFormulaNumberFrame2.png: Attributes of frame surrounding the number of the second formula. It is NOT aligned as configured (86.95 KB, image/png)
2022-02-10 15:18 UTC, Jambunathan K
Details
Removing the padding on OrgFormulanumberFrame "fixes" the issue.png (82.92 KB, image/png)
2022-02-12 11:20 UTC, Jambunathan K
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jambunathan K 2022-02-10 15:14:54 UTC
Created attachment 178191 [details]
FrameDoesntAlignAsDictated.odt:  Problematic ODT file.  Problem with horizontal alignment of formula numbers

Version: 7.2.5.2.0+ / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: x11
Locale: en-IN (en_IN.UTF-8); UI: en-US
Debian package version: 1:7.2.4-1
Calc: threaded

I the attached document the frame surrounding the formula numbers are configured to be aligned to right paragraph border. The frame surrounding the first formula number is aligned correctly.  But the frame surrounding the second formula number is NOT aligned correctly.

See the attached screenshots for what I mean.
Comment 1 Jambunathan K 2022-02-10 15:17:03 UTC
Created attachment 178192 [details]
AttributesOfFormulaNumberFrame1.png:  Attributes of frame surrounding the number of first formula.  It is aligned as configured
Comment 2 Jambunathan K 2022-02-10 15:18:25 UTC
Created attachment 178193 [details]
AttributesOfFormulaNumberFrame2.png:  Attributes of frame surrounding the number of the second formula.  It is NOT aligned as configured
Comment 3 Jambunathan K 2022-02-10 15:28:41 UTC
~$ uname -a
Linux debian 5.15.0-2-amd64 #1 SMP Debian 5.15.5-2 (2021-12-18) x86_64 GNU/Linux

~$ dpkg -l | grep libreoffice-writer
ii  libreoffice-writer                                 1:7.2.4-1                          amd64        office productivity suite -- word processor


This is the backlink for my own reference https://github.com/kjambunathan/org-mode-ox-odt/issues/158
Comment 4 Jambunathan K 2022-02-12 11:20:55 UTC
Created attachment 178238 [details]
Removing the padding on OrgFormulanumberFrame "fixes" the issue.png
Comment 5 Jambunathan K 2022-02-12 11:24:37 UTC
(In reply to Jambunathan K from comment #0)
> Created attachment 178191 [details]
> FrameDoesntAlignAsDictated.odt:  Problematic ODT file.  Problem with
> horizontal alignment of formula numbers
> 
> Version: 7.2.5.2.0+ / LibreOffice Community
> Build ID: 20(Build:2)
> CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: x11
> Locale: en-IN (en_IN.UTF-8); UI: en-US
> Debian package version: 1:7.2.4-1
> Calc: threaded
> 
> I the attached document the frame surrounding the formula numbers are
> configured to be aligned to right paragraph border. The frame surrounding
> the first formula number is aligned correctly.  But the frame surrounding
> the second formula number is NOT aligned correctly.
> 
> See the attached screenshots for what I mean.

I was trying to narrow the issue further.  And I noticed  that reducing the padding of `OrgFormulaNumberFrame` "fixes" the alignment.

See the attached screenshot for what I mean.

I hope this "tip" helps the developers narrow down the issue faster.  (Despite my "workaround")  I consider the observed behaviour a bug.  I will be happy if you could provide an explanation (and a proper fix) for the problematic behaviour.
Comment 6 Dieter 2022-02-26 07:17:31 UTC
I confirm the problem with

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c856f9bec12d98ed49f01578ded79f16ae7be051
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Addtional informations:
Reducing the padding doesn't work for me.
Workaround, that works for me: Change position to "right to text area". Fra also umps to the right, if you add additional paragrpah between the two formulas.
Comment 7 QA Administrators 2024-02-27 03:13:29 UTC Comment hidden (obsolete)
Comment 8 Dieter 2024-04-14 13:14:36 UTC
Still present in

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5ebdcc60701ca5f2d267f92fa69ac06202309c52
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

Steps:
1. Open attachment 178191 [details] and compage alignment of the two frames