Bug 99062 - BackGround color is expanding above or below the BG color chosen for the preceding line
Summary: BackGround color is expanding above or below the BG color chosen for the prec...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Frame-Dialog
  Show dependency treegraph
 
Reported: 2016-04-03 18:18 UTC by David Kremer
Modified: 2016-10-18 02:36 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Document illustrating the reported behaviour (10.66 KB, application/vnd.oasis.opendocument.text)
2016-04-03 18:18 UTC, David Kremer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Kremer 2016-04-03 18:18:01 UTC
Created attachment 124047 [details]
Document illustrating the reported behaviour

Hello,

I noticed a strange bug. To reproduce :

* create a new document
* enter a title on the first line : « my_title_is_this_title »
* apply the title style to this sentence
* without hitting carrier return (important), create a frame. The anchoring is « to paragraph » and you must choose « no adaptation » for the contour. Try to create a large enough frame, like 80% of paragraph width and 10% of paragraph height.

Here a small vid that illustrates this behaviour.

https://www.youtube.com/watch?v=0dugKUjNSMs&feature=youtu.be
Comment 1 Buovjaga 2016-04-12 12:37:23 UTC
Not sure, if bug. It is still the same paragraph. If you only have 1 column, there is no delay in showing the frame bg as colored.
Comment 2 David Kremer 2016-04-12 13:15:41 UTC
Yes, indeed. It is clear that the frame inherits the background color of the title, since there is no carrier return between the two. However, the question is « does a frame should inherit the properties of the closest paragraph ? ».

I am wondering why this frame does not have its own « style » definition. A way to adress this bug would be to separate the style definition of the two objects (title and frame).

Depending on the point of view it may be a bug or not.

From my user point of view, I tell the pupils I teach to avoid breaking lines unnecessary. Of course, I apply this advice to myself and I try to avoid breaking line when it is not needed. So here, it is a bug.
The title line is expanding background way above the single line it is occupying, from a user point of view this is probably not wishable.

From the designer point of view, it *could* be a normal behaviour, although I think I hitted a border case not necessarily planned in the original design. I have no idea if this design *should* be corrected as a bug from the initial pattern in LibreOffice, or even if it could be corrected without major design breaking (the « I'm not an expert, sorry » part of my message.)
Comment 3 Dennis Roczek 2016-04-13 10:07:54 UTC
Hi David,
"I am wondering why this frame does not have its own « style » definition. A way to adress this bug would be to separate the style definition of the two objects (title and frame)."

well, sadly I cannot read which style is applied as the quality is too low of the video. Very likely your style (or the standard style) depends on the "Title"-style.

Please modify your table-style to be inherit from "Standard" and retry your example.

If that works as expected, well then it is clearly not a bug in the software itself but a modification of the standard layouts should be made.
Comment 4 Dennis Roczek 2016-04-13 10:13:15 UTC
sry, I just saw that you had also attached your document.


* you creates a paragraph (title) and hits before enter (virtually) by inserting a table
* which has the same style then applied
* https://www.youtube.com/watch?v=0dugKUjNSMs&feature=youtu.be 1:30 (the background color)
The problem here is that your table style is depend on standard and both have a transparent background and thus you see the grey background of the title style...

How this can be changed in a developmental way is now the biggest question
Comment 5 Yousuf Philips (jay) (retired) 2016-10-18 02:36:11 UTC
Any inserted frame has no background color assigned to it. Simply going into Area tab of Insert > Frame Frame or Format > Frame and Object > Properties and set the fill color from None to Color and selecting a color.