Issue 125227 - Text in shapes does not respect above spacing
Summary: Text in shapes does not respect above spacing
Status: UNCONFIRMED
Alias: None
Product: Draw
Classification: Application
Component: formatting (show other issues)
Version: 4.1.0
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-09 14:45 UTC by davide
Modified: 2014-07-10 09:19 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description davide 2014-07-09 14:45:06 UTC
When I try to format a text paragraph inside a shape, the above spacing property  is not respected.

How to reproduce:

- create a rectangle
- double click on it
- select the rectangle
- right click and select Text properties
- check the "Adjust to contour" option
- select the text inside the rectangle
- right click and select Paragraph properties
- set Spacing -> Above spacing property to 0,5 cm

The text remains on top of the rectangle and it's not moved down.

If I set Indent-> Before Text to more than zero the text is spaced to right accordly. The same for After text.
Comment 1 Armin Le Grand 2014-07-09 16:03:51 UTC
The setting you change applies to paragraphs, thus I suppose you have some paragraphs in the text of that shape. You will see that the distance between the paragraphs is adjusted as the property suggests, this works as intended.
What you might be looking for is the distance of text from the draw object, this is usually defined for draw objects in the 'Text properties' where you initially set the 'Adjust to contour', see 'Spacing to borders'.
As you can see, 'Spacing to borders' is grayed out when 'Adjust to contour' is enabled what means it is not supported for that mode. This is because that mode is intended for more complex forms as the rectangle you were choosing. Try e.g. a donut-like shape or just an ellipse to see what this mode does and is intended for.
What you try to do is block formatting which is better done by using a text frame. Start with using the 'T' toolbar button usually at the bottom of the application and drag-size it as you need it. The text frame is similar to a rectangle, but specialized for text layouting, thus when choosing 'Text properties' you will see that it supports 'Fit width to text' and 'Fit height to text' what rectangles do not do. Better use that, with disabled 'Fit width to text' (default). You can also see that 'Spacing to borders' is used and can be changed.
From the graphic formatting you will not loose anything - you can fill and add lines as with the rectangle.
Maybe you choose to also take a look at the help content or tutorials on the web. HTH!

All works as designed -> unconfirmed.
Comment 2 davide 2014-07-09 16:20:34 UTC
Armin: I know the text frame features. And yes it solves the problem. I've used the rectangle as example for simplicity. 
If you use a close polygon as shape you cannot detach the text from the top border unless you put a CR before.
If it works as designed I think we can consider the issue as an enhancement.
Comment 3 Armin Le Grand 2014-07-10 09:19:46 UTC
Hi davide,

yes, it works as designed. Spacing between paragraphs applies to inside text; if we would need to define a 'distance' from the border of an arbitrary to-be-filled outline (analog to 'Spacing to borders' in the rectangle case). This will not be directed (left/right/top/bottom). It will grow/shrink the target polygon - with all the implications for evtl. concave and complex polyPolygons.

There is a simple workaround; create a hand-crafted polygon for the text (will allow more freedom as doing the shrink automatically), no fill, no line, add text there and use 'Adjust to contour', group with original shape.