Issue 127205 - Additional space added in Master document which is not present in the sub document and is equal to 'Paragraph > Spacing > Gap to Top border'
Summary: Additional space added in Master document which is not present in the sub doc...
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: 4.1.3
Hardware: PC All
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2016-11-02 12:44 UTC by John
Modified: 2016-11-02 22:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

ZIP file of sub.odt and master.odm (37.26 KB, application/octet-stream)
2016-11-02 12:46 UTC, John
no flags Details
spacing is defined as property of paragraphs (54.13 KB, image/png)
2016-11-02 16:08 UTC, mroe
no flags Details
Image showing incorrect gap which appears ONLY in the master (15.16 KB, image/png)
2016-11-02 16:32 UTC, John
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description John 2016-11-02 12:44:11 UTC
When a document containing text with a gap between text and Top border is brought into a master document an additional, unwanted gap is inserted. 

See attached sub.odt and master.odm which calls sub.odt.  The text in master.odm defines the identical page format as used in sub.odt.

Steps to reproduce problem

1 In sub.odt, set set Format > Paragraph > Borders to ON.  Set Borders > Spacing to contents Top = 20mm.  (I also set Bottom = 30mm, Left = 5mm, Right = 10mm - the large values show the problem more easily and which setting is incorrectly being used).

Result:  All text is bordered.  There is a gap of 20mm between the first paragraph on each page and the border above.  In my sub.odt there is also a gap of 30mm between the last line on each page and the border; and between the final paragraph and the border.  There are side gaps of 5m and 10mm.  This is correct.

2  Open master.odm which calls sub.odt, where master.odm has the identical Page Format as sub.odt

Expected result:  The layout of sub.odt should be identical in master.odm as in sub.odt.

Actual result:  There is a additional gap of 20mm (equal to the Spacing to contents Top value) between the page top margin and the border on every page.  These gaps should not be there.
Comment 1 John 2016-11-02 12:46:22 UTC
Created attachment 85818 [details]
ZIP file of sub.odt and master.odm
Comment 2 mroe 2016-11-02 16:08:59 UTC
Created attachment 85819 [details]
spacing is defined as property of paragraphs

The spacing is defined as a property of the paragraph. It is correct that this property imported into the master document.
Comment 3 mroe 2016-11-02 16:10:02 UTC
See attachment and comment 2.
Comment 4 John 2016-11-02 16:32:29 UTC
Created attachment 85820 [details]
Image showing incorrect gap which appears ONLY in the master

See attached image.
The 20mm gap between border and text is correct in both sub and master.  

The 20mm gap between Page Margin and border in master is wrong and it should not be there.  It does not appear in sub.
Comment 5 John 2016-11-02 16:39:42 UTC
Why is this important?  

I know that the "gap to text" is usually set to a small value like 0.5mm or 1mm.  

The problem is that multipage sub documents spill differently at page ends when pulled into the master because the master page length has effectively been shortened by the incorrect gap.  You cannot therefore rely on the sub document layout being maintained in the master.  If an image anchor is in the spilled lines the effect is dramatic.

Resolution:  Ensure that the "gap to text TOP" value - 20mm here - is not used to create a gap between Page Top Margin and Border.

So, I believe it to be an issue.
Comment 6 mroe 2016-11-02 22:05:47 UTC
Now I got it.
Comment 7 mroe 2016-11-02 22:06:54 UTC
Issue confirmed as described by the reporter.