Bug 153860 - FILEOPEN DOCX: Frame moves to the left (instead of spilling off the end of the page)
Summary: FILEOPEN DOCX: Frame moves to the left (instead of spilling off the end of th...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: lowest minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Frames
  Show dependency treegraph
 
Reported: 2023-02-27 15:17 UTC by Vince
Modified: 2023-03-22 21:42 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
MS Word that shows incorrectly in LibreOffice (20.42 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-02-27 15:19 UTC, Vince
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vince 2023-02-27 15:17:26 UTC
Description:
UI is showing the heading 1 style without reference to the page margin.  Basically the UI show's it .37" from the edge of that page, rather than 1.37" it should be as the page has a default 1" margin.

Left: 0, Hanging: 0.5", Right: 0.37"

Steps to Reproduce:
I tried recreating the problem using LibreOffice alone and I could find the frame settings.  However if I make the changes within MS Word and bring it into LibreOffice it seems to half honor the settings as it displays it incorrectly.

MS Word settings for heading 1:

Font: (Default) +Headings (Calibri Light), 16 pt, Font color: Accent 1, Indent:
    Left:  0"
    Hanging:  0.5"
    Right:  0.37"
    Line spacing:  Exactly 32 pt, Space
    Before:  12 pt
    After:  0 pt, Keep with next, Keep lines together, Level 1, Style: Show in the Styles gallery, Priority: 10
    Based on: Normal

MS Word Settings under Layout:
    Margins
       Mirrored

Content:
   Heading 1
   Table long enough to split across 2 columns

Actual Results:
Open file within Word it should show lined up with the table.
Open file in LibreOffice it will show .37" from the edge of the page.

Expected Results:
Heading 1 should align with the table below while using frames and the content below shouldn't overlap.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.4.5.1 (x64) / LibreOffice Community
Build ID: 9c0871452b3918c1019dde9bfac75448afc4b57f
CPU threads: 16; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 1 Vince 2023-02-27 15:19:20 UTC
Created attachment 185617 [details]
MS Word that shows incorrectly in LibreOffice

We found this in a file we were using, but this is a much smaller file with minimal content that helps show the issue.
Comment 2 Dieter 2023-03-12 10:55:58 UTC
I confirm it with

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

and with Word 365

Steps to reproduce
1. Open attachment 185617 [details] in LO and in MS WOrd and compare

Actual result:
Frame moved to the left

Expected result
Same position as in Word

But it's not related to the header, because frame is no part of the header.

In LO frame is anchored to paragraph and horizontal position is -2,82 to paragraph area
Comment 3 Justin L 2023-03-15 19:00:08 UTC
The problem is that the frame is set to be larger than the text area. It is size 27.58 cm and the paper is less than 28cm wide. In MS Word the frame spills off the end into invisibility, but in LO it squishes into the available paper size.

That can readily be seen by adding borders for example.
Comment 4 Vince 2023-03-22 21:42:40 UTC
Confirmed adjusting the width to fit within the page allows it to show correctly.