Bug 91326 - FORMATTING: Paragraph alignment last line justified in Text Box does not work
Summary: FORMATTING: Paragraph alignment last line justified in Text Box does not work
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.4.3.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 131058 146464 (view as bug list)
Depends on:
Blocks: Paragraph-Alignment
  Show dependency treegraph
 
Reported: 2015-05-16 16:27 UTC by Gordo
Modified: 2023-08-15 07:51 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gordo 2015-05-16 16:27:06 UTC
1. New Text Document.
2. Insert → Text Box and draw it and type “this is a test”.
3. Right click on Text Box → Position and Size and set Width to 4.00cm.
4. Click into Text Box and right click on text → Paragraph → Alignment tab, set Options to “Justified” and Last line to “Justified” and OK.
Expected Result:
The text in the Text Box expands to fill the available area.
Result:
The text in the Text Box does not expand to fill the available area.

To ensure that this bug was not restricted to a single line paragraph, I typed more text into the Text Box and the result was the same.

Windows Vista 64
Version: 4.4.3.2
Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16
Comment 1 A (Andy) 2015-05-16 19:59:16 UTC
For me not fully reproducible with LO 4.4.3.2, Win 8.1 as described in the bug report.  
If I insert the short sample text then it is not expanded.  But if I insert a longer text (over several lines) then it is expanded.  But also in the longer text case the last line is not expanded.
Comment 2 Gordo 2015-05-17 00:17:07 UTC
oh but you have reproduced it.

If the first line is the last line then that too should be expanded.

1. New Text Document.
2. Type “this is a test”.
3. Click on Justified on the toolbar.
Result:
Text doesn't expand which is correct.
4. Right click on paragraph → Alignment tab, set Last line to “Justified” (notice the preview) and OK.
Result:
Text expands to fill the width of the page.

If you continue to add text to that line until it goes to the next line then that becomes the last line and if it is short then it will expand to fill the width of the page.  Change the last line back to "Left" and compare the behaviour to the text box.

You can do interesting things like set last line to justified and add large equidistant-from-the-centre indents before and after text so you can have a one line title/slogan centred and justified on the page.

Both "Justified" and "Centred" on the last line do not work in text boxes either on a one line paragraph or on the Nth line.
Comment 3 A (Andy) 2015-05-17 06:48:56 UTC
(In reply to Gordo from comment #2)
> oh but you have reproduced it.
> 
> If the first line is the last line then that too should be expanded.
> 
> 1. New Text Document.
> 2. Type “this is a test”.
> 3. Click on Justified on the toolbar.
> Result:
> Text doesn't expand which is correct.
> 4. Right click on paragraph → Alignment tab, set Last line to “Justified”
> (notice the preview) and OK.
> Result:
> Text expands to fill the width of the page.
> 
> If you continue to add text to that line until it goes to the next line then
> that becomes the last line and if it is short then it will expand to fill
> the width of the page.  Change the last line back to "Left" and compare the
> behaviour to the text box.
> 
> You can do interesting things like set last line to justified and add large
> equidistant-from-the-centre indents before and after text so you can have a
> one line title/slogan centred and justified on the page.
> 
> Both "Justified" and "Centred" on the last line do not work in text boxes
> either on a one line paragraph or on the Nth line.

Yes, the last line issue I could reproduce.
But I could not reproduce "To ensure that this bug was not restricted to a single line paragraph, I typed more text into the Text Box and the result was the same".  Because if I had a longer text then all the text was justified, besides the last line.  Or is it a misunderstanding from my side and you meant with your bug report only this last line issue?
Comment 4 Gordo 2015-05-17 10:27:12 UTC
This:

"To ensure that this bug was not restricted to a single line paragraph, I typed more text into the Text Box and the result was the same."

meant that maybe it was only happening for the single line paragraph, which was the last line, so I added text to create a second line, which was now the last line and the second line did not expand.  The first line expanded correctly.

I thought maybe it was not working just for a single line paragraph and that if there was a second line then the second line would expand but it did not.
Comment 5 QA Administrators 2016-09-20 09:42:56 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2019-12-03 14:38:27 UTC Comment hidden (obsolete)
Comment 7 Stéphane Guillou (stragu) 2021-12-29 15:20:01 UTC
*** Bug 146464 has been marked as a duplicate of this bug. ***
Comment 8 Stéphane Guillou (stragu) 2021-12-29 15:21:58 UTC
Reproduced in:

Version: 7.3.0.0.beta1 / LibreOffice Community
Build ID: 436f14c25ec1847646b953cf13d0db4f7ca3be57
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

and:

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 7fe2ce55ab86cc7a32850fdf504e368c535949c3
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 9 Stéphane Guillou (stragu) 2021-12-29 15:23:51 UTC
*** Bug 131058 has been marked as a duplicate of this bug. ***
Comment 10 Po-Yen Huang 2022-02-16 08:05:42 UTC
I pushed a request to gerrit to hide related options until they are fixed, please review it :-)
https://gerrit.libreoffice.org/c/core/+/129807