| Summary: | FORMATTING: idiosyncratic centring of text in text box | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Bob Bevan-Jones <bevan-jones> |
| Component: | Draw | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | minor | ||
| Priority: | medium | ||
| Version: | unspecified | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Attachments: |
LibreOffice .odg file giving examples of the behaviour described
screenshot with LO 3.5.4.2 Screenshot with LO 3.4.4 |
||
Created attachment 69136 [details]
screenshot with LO 3.5.4.2
May have been corrected in the meantime... Do the boxes look any different than in the screenshot (LO 3.5.4.2 Linux)? The text looks correctly centred in all 3 boxes for me.
Created attachment 69143 [details]
Screenshot with LO 3.4.4
Yes - that's much better. For me (using LO 3.4.4) it dsoesn't look like that (screenshot attached). Glad to know a fix has already been implemented! Marking as RESOLVED. @ Bob: Check the setting under "Text/Text anchor". Box 1 is anchored at the centre, boxes 2 and 3 left. The text looks pretty precisely centred when anchored at centre. [Sorry about delay, by the way.] I've upgraded my LO since I originally posted this issue. I'm now on 3.6.2.2 (on Linux Mint 14). I checked the Text Anchoring on boxes 2 & 3 as suggested, and hey presto! the text in all boxes is properly centred. Thankyou, thankyou. But I still have a little niggle: I didn't tinker with the Text Anchoring in any of the three boxes when I set up the example file, so I presume: (a) by default Text Anchoring is set as top left; and (b) for box 1 it was reset to top centre. So how come it was reset? Could it be that when I centred the text (menu option Format->Paragraph->Alignment->Center; or click "center-paragraph" icon on Text Formatting toolbar), LO detected that all the lines in the text fitted within the box width; and concluded at that point that I wanted the Text Anchoring changed? |
Created attachment 68807 [details] LibreOffice .odg file giving examples of the behaviour described Maybe this is a "feature" rather than a bug, but it doesn't seem right. I create a rectangle in LibreOffice Draw, then create a text box of the same size to sit on top of it. If I then type a series of non-wrapped lines into the text box, and afterwards centre the entire text, the text will be centred both within the text box and the rectangle. Good: that's as intended. If, however, I type a long piece of text into the text box, which wraps within its fixed width, and again centre the text afterwards, the text will be off-centre to the left. It looks to me as though the longest fragment of text is locked to the left-hand edge of the text box, and the rest of the text in the box is centred according to that. Not good; but the text box can be moved to make the text properly centred within the rectangle, so it's not a disaster. One step further: if I take the text from the second case above, and *insert* line breaks in order to make each line fit within the width of the text box, then the text stays centred as before. Very idiosyncratic, and not very intuitive. I attach a LibreOffice .odg file which shows these three cases. I am using 3.4.4 OOO340m1 (Build:402), running it on Linux Mint "Lisa" (kernel 3.0.0-12-generic.