Bug 137069 - Inconsistent extension of section area
Summary: Inconsistent extension of section area
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Section
  Show dependency treegraph
 
Reported: 2020-09-27 13:20 UTC by ajlittoz
Modified: 2022-11-25 17:26 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Coloured section backgrounds (11.80 KB, application/vnd.oasis.opendocument.text)
2020-09-27 13:20 UTC, ajlittoz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ajlittoz 2020-09-27 13:20:33 UTC
Created attachment 165887 [details]
Coloured section backgrounds

A section is a part of a page with its own properties. Number of columns may be different as well as background.

It is expected tht a section begins at a well defined and predictable position. The same for where it ends.

A user expects section limits encompass everything contained inside the section.

A section mainly contains paragraphs. A paragraph is defined as spacing above, text and spacing below. Therefore a section "frontier" is expected to be located between the spacing below of the paragraph preceding the section and the spacing above of the first paragraph of the section.

Presently, Writer displays the section frontier immediately below the bottom of the bounding box of the characters of the last line.

Blank space (spacing below + spacing above) is always considered to be part of the page, whatever the settings of the spacings.

See attached file where page and section backgrounds have been coloured to show the behaviour.

Then, either the "restricted" section area is a design decision. Then where is it specified? How can we work around the difficulty to paint precisely paragraph background in a section?

Or this is bug and section limits should be fixed.

This bug report is a follow-on of https://ask.libreoffice.org/en/question/268180/problem-with-section-no-background-color-at-the-sections-beginning/
Comment 1 Regina Henschel 2020-09-27 15:34:20 UTC
Margins are always transparent. So it is correct, that in the left part of the section the yellow color of the page is visible. But the section has neither margin-top nor margin-bottom. Therefore the background color of the section should go from top of the section to the bottom of the section.
Because margins are transparent, the red color of the section should be visible in the margins of the paragraphs.

The 'text boundary' (menu View) of the section is wrong. To top boundary line should be 5mm below the paragraph text, because the paragraph has a 5mm bottom margin. Same for the bottom boundary line. 

I see the same in AOO4.1, so likely inherited from OOo, but I have not tested earlier LO versions.

MS Word and Softmaker are not able to show background colors of sections, so not suitable for comparisons.
Comment 2 ajlittoz 2020-09-27 16:42:16 UTC
PS: forgot to mention that "horizontal behaviour" is as I expect it.

If section has indents, then these indents are there to restrict laterally the extent of the section. Therefore (again as I expect it; don't know if this is so in the specification), background for the indents should be the one for the surrounding section or page. In the attached sample, I'm satisfied with the way the left indent is coloured.

I don't see where I can define "padding" space around a section (but I'm on a trip and only have access to 4.1.6.2 - need to wait until I return to check with a more recent release). In 4.1.6.2, a section can't have borders, then there is no spacing to border (again, I must check with 6.4.6.2). In case there can be some padding, this padding IMHO is part of the section and should have the section background.
Comment 3 Regina Henschel 2020-09-27 18:24:08 UTC
(In reply to ajlittoz from comment #2)
> I don't see where I can define "padding" space around a section (but I'm on
> a trip and only have access to 4.1.6.2 - need to wait until I return to
> check with a more recent release). In 4.1.6.2, a section can't have borders,
> then there is no spacing to border (again, I must check with 6.4.6.2). In
> case there can be some padding, this padding IMHO is part of the section and
> should have the section background.

Sections have only fo:margin-left and fo:margin-right in file format. There exist no margin-top, no margin-bottom, no border and no padding.
Comment 4 QA Administrators 2022-09-28 03:32:50 UTC Comment hidden (obsolete)
Comment 5 ajlittoz 2022-09-28 08:43:18 UTC
Spacing below paragraph still ignored in 7.3.6.2. All other spacing and indent parameters are correctly interpreted.

This occurs on the paragraph preceding a section and in the last paragraph of a section.