Bug 107840 - Above paragraph spacing not affecting first text line in textbox
Summary: Above paragraph spacing not affecting first text line in textbox
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on: 51340
Blocks: Textbox
  Show dependency treegraph
 
Reported: 2017-05-14 06:31 UTC by Yousuf Philips (jay) (retired)
Modified: 2023-12-22 03:13 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
sample (8.94 KB, application/vnd.oasis.opendocument.text)
2017-05-14 06:31 UTC, Yousuf Philips (jay) (retired)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2017-05-14 06:31:25 UTC
Created attachment 133307 [details]
sample

Steps:
1) Open attached document
2) Enter the text box and notice that both lines are set to 10pt above spacing, but the first line doesnt have any space above it

Version: 5.4.0.0.alpha0+
Build ID: 74ccd02eda2d6325a27266fd935aba29b3d75020
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-04-27_23:51:14
Locale: en-US (en_US.UTF-8); Calc: group
Comment 1 Telesto 2017-05-14 09:26:09 UTC
Confirming with:
Version: 5.4.0.0.alpha1+
Build ID: 970b431f1a7b6b96c4c9536657ce4fe9d8f5b585
CPU threads: 4; OS: Windows 6.2; UI render: default; 
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2017-05-11_23:07:53
Locale: en-US (nl_NL); Calc: single
Comment 2 Yousuf Philips (jay) (retired) 2017-05-14 14:08:22 UTC
@Cor, @Stuart, @Regina: Any ideas why this is so and is there a means to add padding (space to content) inside of a textbox?
Comment 3 V Stuart Foote 2017-05-14 14:45:04 UTC
Only thing that comes to mind is top row of a Table object--you cant its above value. Is the top line of a text box similarly limited in VCL?
Comment 4 Yousuf Philips (jay) (retired) 2017-05-14 15:15:35 UTC
(In reply to V Stuart Foote from comment #3)
> Only thing that comes to mind is top row of a Table object--you cant its
> above value.

I was able to add above paragraph spacing in the first row of a table, or am i missing something?
Comment 5 Cor Nouws 2017-05-14 15:30:15 UTC
This is ruled Tools > Options > Writer > Compatibility ..Ad paragraph and table spacing at top of pages.
Changing that shows the spacing above of the paragraph both in a frame and on the page.
Or do we want a separate setting for this :)
Comment 6 Regina Henschel 2017-05-14 16:11:41 UTC
(In reply to Cor Nouws from comment #5)
> This is ruled Tools > Options > Writer > Compatibility ..Ad paragraph and
> table spacing at top of pages.
> Changing that shows the spacing above of the paragraph both in a frame and
> on the page.

This issue is not about a frame, but about a text box. That is the shape, which you enter by the T symbol. The compatibility settings do not affect the text box.

> Or do we want a separate setting for this :)

Yes or somewhere else. The same problem exists for the classical text area in other shapes. In the new kind of "text box" in custom shapes (context menu -> Add Text Box) the spacing above paragraph is honored for the first line.



(In reply to Yousuf Philips (jay) from comment #2)
> @Cor, @Stuart, @Regina: Any ideas why this is so

No.

> and is there a means to add padding (space to content) inside of a textbox?

The padding is set in Format > Text Box and Shape > Text Attributes > part Spacing to Borders
Comment 7 Cor Nouws 2017-05-14 16:26:58 UTC
(In reply to Regina Henschel from comment #6)

> This issue is not about a frame, but about a text box. That is the shape,

Apologies. In the Dutch translation there's sometimes a mixture of frame, text frame.., so I missed the distinction


(In reply to Yousuf Philips (jay) from comment #2)
> @Cor, @Stuart, @Regina: Any ideas why this is so and is there a means to add
> padding (space to content) inside of a textbox?

In Draw there is the Text entry in the context menu.
In Writer that is alas in the menu only: Format > Text Boxe and Shape > Text Attributes. (I think people should argue more in favor of the context menu :p )

May I close as WorksForMe?
Comment 8 Regina Henschel 2017-05-14 17:18:28 UTC
I think it is a valid issue. When you open such document in Word, you will see, that Word shows this spacing above the paragraph. So it is an interoperability issue in addition.

The settings in "Text Attributes" are the padding of the whole text box. They determine the distance of the content, composed by the paragraphs and lists, from the edges of the area, which is defined for text. Word shows the actual area for text with dotted lines. The padding is written as attribute fo:padding-top of the <style:graphic-properties> element of the shape.

The "Spacing above" is an attribute fo:margin-top of the <style:paragraph-properties> of each paragraph.

   (In reply to Cor Nouws from comment #7)
> Apologies. In the Dutch translation there's sometimes a mixture of frame,
> text frame.., so I missed the distinction

Not only in Dutch. The terminology is confusing.
Comment 9 Yousuf Philips (jay) (retired) 2017-05-14 17:55:46 UTC
(In reply to Regina Henschel from comment #6)
> Yes or somewhere else. The same problem exists for the classical text area
> in other shapes. In the new kind of "text box" in custom shapes (context
> menu -> Add Text Box) the spacing above paragraph is honored for the first
> line.

So is the new kind of textbox planned to be implemented everywhere?

> The padding is set in Format > Text Box and Shape > Text Attributes > part
> Spacing to Borders

I opened that dialog and didnt have a line around the textbox and assume it was adding padding outside of the textbox. :D

(In reply to Regina Henschel from comment #8)
> I think it is a valid issue. When you open such document in Word, you will
> see, that Word shows this spacing above the paragraph. So it is an
> interoperability issue in addition.

Yep i opened this bug because of interoperability in bug 51340.
Comment 10 V Stuart Foote 2017-05-14 18:10:23 UTC
(In reply to Yousuf Philips (jay) from comment #9)
> So is the new kind of textbox planned to be implemented everywhere?
> 
Wouldn't call them new, uno:AddTextBox and uno:RemoveTextBox
See bug 107687 for where the two instances collide.
Comment 11 QA Administrators 2018-05-15 02:31:23 UTC Comment hidden (obsolete)
Comment 12 Regina Henschel 2018-05-23 23:11:42 UTC
The error still exists in Version: 6.1.0.0.alpha1+ (x64)
Build ID: 88051c660fc6759346a01bc559818d3e23f8f55c
CPU threads: 8; OS: Windows 10.0; UI render: default; 
Locale: de-DE (de_DE); Calc: CL
Comment 13 QA Administrators 2019-05-24 02:56:08 UTC Comment hidden (obsolete)
Comment 14 sdc.blanco 2019-10-30 17:17:03 UTC
The error still exists in Version: 6.4.0.0.alpha1 (x64)
Build ID: cc57df8f942f239d29cb575ea5a7cb01405db787
CPU threads: 8; OS: Windows 10.0 Build 18362; UI render: GL; VCL: win; 
Locale: en-US (en_DK); UI-Language: en-US
Calc: CL

Additional information.
1.  All other spacing functions (e.g., spacing below, indent) work for the first line in the textbox.  Just not above spacing.

2.  Above spacing works for other paragraphs in the textbox.

3.  Also encountered the problem when trying to put padding for the top line. 
As a "workaround", I put a blank line and changed the font size to a small number (2pt, 4pt.)
Comment 15 QA Administrators 2021-10-30 04:36:36 UTC Comment hidden (obsolete)
Comment 16 sdc.blanco 2021-12-21 11:41:03 UTC
Confirmed:
Version: 7.2.5.1 (x64) / LibreOffice Community
Build ID: 6d497ff5e83a906a307eb25cce314d40c0b8624f
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: da-DK (en_DK); UI: en-US
Calc: threaded
Comment 17 QA Administrators 2023-12-22 03:13:13 UTC
Dear Yousuf Philips (jay) (retired),

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug