Bug 149369 - EDITING Form Controls: Default anchor should be set "To Page", not "To Paragraph"
Summary: EDITING Form Controls: Default anchor should be set "To Page", not "To Paragr...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-30 06:05 UTC by Robert Großkopf
Modified: 2022-06-01 05:47 UTC (History)
1 user (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 Robert Großkopf 2022-05-30 06:05:42 UTC
Open any database file.
Got to Forms → Use Wizard to create a Form…
Create a form.
After you have created the form open the form for editing, not for input data.
Set cursor on the background of the form.
Press "Del".
All controls will disappear.

This isn't only a problem of the wizard. Default anchor for all controls is "To Paragraph". So all controls will be lost by pressing "Del".
This wouldn't happen if default anchor (in Base forms, not in standalone forms!) would be changed "To Page".

Another argument for "To Page": Some users try to change the position of controls by setting paragraphs. Have seen many form here with a lot of paragraphs. If controls are anchored to paragraph you couldn't set the position exactly by PositionX and PositionY of the control.
Comment 1 Mike Kaganski 2022-05-30 06:25:31 UTC Comment hidden (off-topic)
Comment 2 Mike Kaganski 2022-05-30 06:31:47 UTC Comment hidden (off-topic)
Comment 3 Mike Kaganski 2022-05-30 06:36:52 UTC Comment hidden (off-topic)
Comment 4 Robert Großkopf 2022-05-30 06:38:26 UTC
(In reply to Mike Kaganski from comment #1)
> (In reply to Robert Großkopf from comment #0)
> > If controls are anchored to paragraph you couldn't set the
> > position exactly by PositionX and PositionY of the control.
> 
> Not opposing the request itself (I have *no* preference myself) - just
> mentioning the flaw in this specific excerpt: you *can* define exact
> *positioning* of controls regardless of the *anchoring* - see FAQ [1].

Certainly you could position any control exactly. Might be my special problem with English language. If there is more than one paragraph in a form controls will be anchored to different paragraphs. PositionY won't help here to set controls at the same absolute y value.
Comment 5 Julien Nabet 2022-05-31 21:29:11 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.

After some test, related code seems to be in wizards/com/sun/star/wizards/form but I tried:
git grep -in anchor
and
git grep -in parag
it returns nothing.

Are you sure it's about anchor type?
Comment 6 Robert Großkopf 2022-06-01 05:47:55 UTC
(In reply to Julien Nabet from comment #5)
> 
> After some test, related code seems to be in
> wizards/com/sun/star/wizards/form but I tried:
> git grep -in anchor
> and
> git grep -in parag
> it returns nothing.
> 
> Are you sure it's about anchor type?

Think it has nothing to do with the wizard.
Open a form for editing.
Add a control.
Have a look for the anchor.
Anchor is set to paragraph automatically.

This is the same behavior in Writer, because default anchor could only be set for images, not for form controls.