Bug 138447 - A right aligned Text Box in Microsoft Word is MINIMALLY shifted to left in Libre Office Writer
Summary: A right aligned Text Box in Microsoft Word is MINIMALLY shifted to left in Li...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx, preBibisect
Depends on:
Blocks: DOCX-Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2020-11-24 08:31 UTC by Hannes
Modified: 2024-10-01 03:16 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
A sample with a text box that is aligned to the right margin. (45.25 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-11-24 08:34 UTC, Hannes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hannes 2020-11-24 08:31:49 UTC
Description:
I have a .docx file with a Text Box that is aligned to the right margin in Mircosoft Word. When I open this document in Libre Office Writer the Text Box is not aligned correctly to the right margin. There is a little gap.

Steps to Reproduce:
1. Insert a Text Box in Microsoft Word.
2. Set the horizontal position of the Text Box to: Alignment = right, relativ to = Margin 
3. Save the document in Microsoft Word 2016.
4. Open the document in Libre Office Writer.

Actual Results:
The Text Box is NOT aligned on the right margin. The Text Box is shifted to the left.

Expected Results:
The Text Box should be aligned to the right margin.


Reproducible: Always


User Profile Reset: No



Additional Info:
see attachment
Comment 1 Hannes 2020-11-24 08:34:53 UTC
Created attachment 167526 [details]
A sample with a text box that is aligned to the right margin.
Comment 2 Timur 2020-11-25 07:00:25 UTC
Please search in existing bugs and see if duplicate of Bug 100920. 
Looks similar enough and if that one is ever fixed, duplicates should be tested. 
Also, good approach is comparison screenshot with DOCX in MSO and in LO. 
Once fileopen is hopefully fixed, also of resave and reopen in LO and MSO.
Comment 3 Justin L 2020-11-28 18:49:15 UTC
Well, this looks terrible in Word 2003. Half of the picture is cut off...

The extra space appears to come from the wrapping settings. The distance from text on the right is 0.32cm. Setting that to zero wedges it against the right side, as expected. So perhaps MS ignores that value if there is no text on the side that is being wrapped. LibreOffice adds that spacing even if you set the wrapping to left-only.

This does not sound like a duplicate Bug 100920.
Comment 4 Justin L 2020-11-28 18:56:00 UTC
This looked terrible in bibisect 43all, but the wrapping spacing still seemed to apply there, so I am marking as pre-bibisect, and likely inherited from OOo.
Comment 5 Justin L 2020-11-28 18:58:23 UTC
I'm not sure how much we can do here. An author could remove the wrapping spacing in order to get the effect he wants. But in this case, wrapping is set for both sides, so we could hardly just set one side to zero on import.

The only other option would be a compatibility flag, and handle the layout differently - a nasty business indeed.
Comment 6 QA Administrators 2024-10-01 03:16:33 UTC
Dear Hannes,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug