Bug 153663 - Selecting Text Box Multi-line formatting in forms does not allow formatting
Summary: Selecting Text Box Multi-line formatting in forms does not allow formatting
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-16 10:16 UTC by Mike Sapsard
Modified: 2023-12-01 16:36 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screen shot (37.09 KB, image/png)
2023-02-16 10:18 UTC, Mike Sapsard
Details
Screenshot of the Black Screen (19.73 KB, image/png)
2023-10-17 14:46 UTC, judd
Details
Screenshot of Black Screen with some icons appearing (23.72 KB, image/png)
2023-10-17 14:51 UTC, judd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Sapsard 2023-02-16 10:16:03 UTC
Description:
When creating a Text Box in a form, the multi-line with formatting greys out default text, Font, vertical alignment, and horizontal alignment.

Steps to Reproduce:
1. Go to Design Mode and create a Text Box.
2. Open the Properties Text Box
3. Select Multi-line with formatting.

Actual Results:
The Default text, Font, vertical alignment, and horizontal alignment fields are all greyed out.

Expected Results:
It should be possible to format the text within the Text Box.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
The only alternative is to not use a Text Box.
Comment 1 Mike Sapsard 2023-02-16 10:18:08 UTC
Created attachment 185401 [details]
Screen shot
Comment 2 Dieter 2023-03-03 16:28:42 UTC
I can't confirm with

Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

Only vertical alignment is greyed out (might be expected). Perhaps a Linux issue? If you like, add a sample document for testing.
Comment 3 judd 2023-10-17 14:43:24 UTC
Can confirm the behavior but the field "Horizontal alignment" is no longer present on my end but is replaced with just "Alignment". I think they serve the same purpose but was just renamed. I'm using the following:


Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 12; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-PH (en_PH); UI: en-US
Calc: CL threaded


I also observed the following when I tried replicating the behavior:

1. The background color of the text box turns gray after selecting "Multi-line with formatting" option. It seems that the default Background color for both "Single-line" or "Multi-line" options are white while the default Background color for "Multi-line with formatting" option is gray, even without changing the value of the "Background color" field from "Default".

2. The value inputted in the "Default text" field is still shown and applied when switching from either "Single-line" or "Multi-line" option to "Multi-line with formatting" option. 

3. The values selected in the "Font", "Alignment", and "Vert. Alignment" fields were grayed out and no longer applied when switching from either "Single-line" or "Multi-line" option to "Multi-line with formatting" option. They return to and apply their default values which are: (Default) for "Font" which corresponds to the Segoe UI font, Left for "Alignment", and Default for "Vert. Alignment" which corresponds to middle.

4. The entire LibreOffice Writer application turns black, except for the text box, when switching from the "Multi-line with formatting" option to the "Single-line" option. This does not happen when switching from "Multi-line" option to the "Single-line" option. I will be sending screenshot attachments of the behavior. 

Related to the behavior above where the application turns into a black screen, icons and parts of the application afterward become visible incrementally upon hovering over them with my cursor. The black screen becomes fixed after minimizing or maximizing the application window. 

Cannot replicate #4 behavior when using Safe Mode of LibreOffice Writer.
Comment 4 judd 2023-10-17 14:46:03 UTC
Created attachment 190262 [details]
Screenshot of the Black Screen
Comment 5 judd 2023-10-17 14:51:16 UTC
Created attachment 190263 [details]
Screenshot of Black Screen with some icons appearing

Icons and parts of the LibreOffice Writer application show up from the black screen after the cursor hovers over them. This is not very reliable and some icons/parts still remain black after hovering. The only reliable way to revert back the screen is to maximize or minimize the application window.

Realizing this needs to be a separate bug but was just discovered through the replication of this current one.
Comment 6 Buovjaga 2023-10-30 19:04:42 UTC
Already seen in 3.5. Not sure what to make of this, should ask developers in the chat.

It seems the logic to disable those fields happens here: https://opengrok.libreoffice.org/xref/core/extensions/source/propctrlr/editpropertyhandler.cxx?r=63a9b0be#257
Comment 7 Luigi Gorgone 2023-12-01 16:36:10 UTC
Repro with:
Version: 7.3.7.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 12; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: it-IT (it_IT.UTF-8); UI: it-IT
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.3
Calc: threaded