Bug 145565 - FORMS: PS changes to Default Paragraph Style after copy and paste text box in a specific document
Summary: FORMS: PS changes to Default Paragraph Style after copy and paste text box in...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.5.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Form-Controls
  Show dependency treegraph
 
Reported: 2021-11-06 00:13 UTC by MarjaE
Modified: 2023-04-24 19:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Abandoned Form (20.54 KB, application/vnd.oasis.opendocument.text)
2021-11-06 19:32 UTC, MarjaE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MarjaE 2021-11-06 00:13:16 UTC
Description:
In Writer, it seems impossible to align forms with the text.

Steps to Reproduce:
1. Open Writer.
2. Type up a quick text form.
3. Use Form Controls to try to add a text box.

Actual Results:
4. It's impossible to align it to text-based divisions, such as tab positions, line positions, etc., and it can easily push these around if you slip up.

Expected Results:
5. By default, I ended up unable to size the text box to fit the text, and slipped, and ended up with text wandering up and down. I found and enabled snap to grid, and it still made text wander up and down. If I'm using Writer instead of Draw, I expect to be able to fit the form to the text.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.5.2 / LibreOffice Community
Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5
CPU threads: 4; OS: Mac OS X 10.14.6; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 m_a_riosv 2021-11-06 14:43:46 UTC
Please attach a sample file showing what you want to do.
Comment 2 MarjaE 2021-11-06 19:32:44 UTC
Created attachment 176136 [details]
Abandoned Form

I tried to add text fields for each part of the form. However, I couldn't set a height in lines or width in either characters or tab widths to fit the rest, and I would end up bouncing text up and down if I tried to adjust the heights.
Comment 3 Dieter 2023-02-04 06:47:29 UTC
Marja, a new major release is available at https://www.libreoffice.org/download/download-libreoffice/ Could you please retest ith LO 7.5? If problem ist still present there, I will try to reproduce it, but I must admit that steps are unclear to me.

=> NEEDINFO
Comment 4 MarjaE 2023-02-08 02:57:28 UTC
With LibreOffice 7.5, LibreOffice keepscrashing, and if I can get far enough to test, adding text forms still makes nearby text bounce.
Comment 5 Dieter 2023-03-11 10:12:18 UTC
I've tried to reproduce the bug, but steps are not clear to me.

Steps:
1. Open attachment 176136 [details]
2. ?????

I can't see any text form within document. Navigator shows two shapes as drawing objects, but you can't select them and I also can't see them. So could you please specify steps to reproduce? Thank you

Tested with

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d7c609dbb1bd08865b43719d2fb7c316d30bcde5
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (de_DE); UI: en-GB
Calc: CL threaded

=> NEEDINFO
Comment 6 MarjaE 2023-03-11 19:25:02 UTC
1. Open the file.

2. Go to Form > Design Mode.

3. Select a field.

4. Copy it and paste it. If you paste it to an empty line, it will cause the next row to jump up. If you paste it alongside an existing row, it won't have much effect alongside the larger text, but it will increase line spacing alongside the smaller text.

5. Try to resize it to fit the smaller text. It won't.

6. Try to drag-and-drop to compare one form field to another. It won't, and the whole page will be thrown into disarray. Trying to drag it back into place can make it worse.
Comment 7 Dieter 2023-04-06 14:21:42 UTC
(In reply to MarjaE from comment #6)
> 4. Copy it and paste it. If you paste it to an empty line, it will cause the
> next row to jump up.
I can't confirm.

> If you paste it alongside an existing row, it won't
> have much effect alongside the larger text, but it will increase line
> spacing alongside the smaller text.
For me this is expected.
 
> 5. Try to resize it to fit the smaller text. It won't.
No problem for me. I can select it and change size by dragging th borders of the shape. It is also possible to change size in control properties
 
> 6. Try to drag-and-drop to compare one form field to another.
Yes, that's not possible. But for me this is also expected behaviour. You can compare the fields with their control properties.
Comment 8 MarjaE 2023-04-10 19:02:58 UTC
It appears that pasting a form field to an empty line switches the line from "Text Body" to "Default Paragraph Style" which affects the spacing to the next line.

If I go into Design Mode and try to manually resize a field, either it shrinks to nothing, or it expands to about 1/4". I can't match it to fit text and text spacing.

Position and Size helps, but it is its own menu. If you don't have working contextual menus, it may be under Format > Text Box and Shape.
Comment 9 Dieter 2023-04-24 19:33:03 UTC
(In reply to MarjaE from comment #8)
> It appears that pasting a form field to an empty line switches the line from
> "Text Body" to "Default Paragraph Style" which affects the spacing to the
> next line.

I confirm this with your document, but not with a document created on my own. I suggest to rduce report to that problem

Steps:
1. open attachment 176136 [details]
2. Form -> Design Mode
3. Select and copy text box in first paragraph
4. Place cursor in third paragraph (PS is Text Body, that is inherited from Default Paragraph Style)
5. Paste text box

Actual result:
PS changes to "Default Paragraph Style" (Therefore spacing below paragraph changes from 0,25cm to 0 cm)

Expected result:
No change in PS

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 006b35d50024b1932d84380b5d2fec1f7066bccd
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (de_DE); UI: en-GB
Calc: CL threaded

Marja, if you think this report doesn't cover your problem (in a first step) feel free to open another report.