Bug 146777 - Paragraph border is wrong when a list is inside
Summary: Paragraph border is wrong when a list is inside
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-15 09:55 UTC by david.vantyghem
Modified: 2022-12-02 13:02 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot, 2 paragraphs with border (96.79 KB, image/png)
2022-01-15 09:56 UTC, david.vantyghem
Details
Border around paragraph and list of old kind (11.88 KB, application/vnd.oasis.opendocument.text)
2022-01-15 15:21 UTC, Regina Henschel
Details
Using section or frame (14.72 KB, application/vnd.oasis.opendocument.text)
2022-01-15 15:25 UTC, Regina Henschel
Details
Borders at right and at left (14.82 KB, image/png)
2022-01-15 15:44 UTC, david.vantyghem
Details

Note You need to log in before you can comment on or make changes to this bug.
Description david.vantyghem 2022-01-15 09:55:20 UTC
Description:
When one add a border to a paragraph, the border begin at the left border of the page and finish at the right border of the page. But when there's a list inside the paragraph, the border is wrong, it's shifted and looks awful.

Steps to Reproduce:
1.Type 2 paragraphs: one without list inside and one with a list (bullet list, number list...) inside
2.Add a border to the 2 paragraphs.

Actual Results:
The border of the paragraph is shifted.

Expected Results:
It shouldn't be shifted.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version : 6.4.7.2
Build ID : 1:6.4.7-0ubuntu0.20.04.2
Threads CPU : 4; OS : Linux 5.4; UI Render : par défaut; VCL: gtk3; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded
Comment 1 david.vantyghem 2022-01-15 09:56:27 UTC
Created attachment 177560 [details]
Screenshot, 2 paragraphs with border
Comment 2 david.vantyghem 2022-01-15 10:00:54 UTC
Without list in paragraph, the border isn't shifted at left or at right, it begins at the border of the page at right AND at left sides, even if the text is too short to reach the right side of the page.
With a list in paragraph, why border is shifted at left? (and not at right) It should not be shifted at left, as it isn't shifted at right.
Comment 3 Rainer Bielefeld Retired 2022-01-15 14:25:33 UTC
Effekt is REPRODUCIBLE with  Installation of Version 7.2.4.1 (x64) / LibreOffice 
Build  27d75539669ac387bb498e35313b970b7fe9c4f9
CPU threads: 12; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win; Locale: de-DE (de_DE); UI: de-DE; Calc: threaded;  Elementary Theme; My normal User Profile.

And it's not limited to List. "Increase Indent (for example) also shifts paragraph drawn border to the right.

But I think it's a feature, not a bug. the drawn box around the paragraph correctly shows the limits around the paragraph


@reporter:
a) please contribute a reference to typographic rules which underpin your opinion that the current behavior is wrong.
Comment 4 david.vantyghem 2022-01-15 14:33:07 UTC
If it was a feature, right border should be shifted too when line is smaller than page width. But it isn't. So why only left border ? It's illogical. It's a bug and the display is awful.
Comment 5 david.vantyghem 2022-01-15 14:33:53 UTC
It's border of a paragraph, not border of text.
Comment 6 Regina Henschel 2022-01-15 15:21:18 UTC
Created attachment 177564 [details]
Border around paragraph and list of old kind

(In reply to david.vantyghem from comment #0)
> Description:
> When one add a border to a paragraph, the border begin at the left border of
> the page and finish at the right border of the page.

No, the border starts and ends at the inner edge of the paragraph margin area.

> But when there's a list
> inside the paragraph,

A list is never "inside the paragraph", but each list item is a paragraph of its own.

> the border is wrong, it's shifted and looks awful.

The paragraphs of the list items in your example likely have a margin.

I assume, that you want a look similar to the list in my attachment. It is made with the old kind of list (as used in Draw/Impress). Such determines the bullet position without using a margin. Unfortunately Writer has no UI to generate these kind of lists, although if such list exists, the UI of its style switches to the old kind.

But I think instead fiddling around with paragraph borders and kind of lists, you should put the part for which you want a border and a fill into a frame and use the border and fill of the frame instead of the border and fill of paragraphs.
Comment 7 Regina Henschel 2022-01-15 15:25:11 UTC
Created attachment 177565 [details]
Using section or frame

And here a workaround with section and frame.
Comment 8 david.vantyghem 2022-01-15 15:44:24 UTC
Created attachment 177566 [details]
Borders at right and at left

In this attachment, you can see that border is near text at left, not at right? Why? It's not logical. 

The good solution would be to have border with section, indeed. I never used section, I will try, thank you.
Comment 9 Buovjaga 2022-12-02 13:02:02 UTC
It sounds like this can be closed.