Bug 155730 - Wrong Anchor item in dropdown field of the Control Properties dialog
Summary: Wrong Anchor item in dropdown field of the Control Properties dialog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Form-Controls
  Show dependency treegraph
 
Reported: 2023-06-08 09:58 UTC by Regina Henschel
Modified: 2023-10-04 18:12 UTC (History)
2 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 Regina Henschel 2023-06-08 09:58:21 UTC
Insert a form control and open the Control Properties dialog. Go to 'Anchor' field on tab 'General'. This field has two items: "To page" and "To cell". Problems:

(A) That was correct in times of OpenOffice.org but is no longer correct for LibreOffice. LibreOffice has the three anchor types "To page", "To cell" and "To cell (resize with cell)". This are available in the 'Anchor' item in the context menu of a form control.

(B) The item "To cell" is actual a "To cell (resize with cell)" but users do not know that. So they might try to force a size protect of the form control by the option "Size protect" in the "Position and Size" dialog. But that leads to inconsistent file markup. For details see the discussion in bug 154821 and my repair instructions in the ReleaseNotes 7.6.

There are two ways to fix the problem: Remove the item from the Control Properties dialog or extend the item in the Control Properties to three entries. At least the text of the item should be changed to "To cell (resize with cell)".
Comment 1 Heiko Tietze 2023-06-08 13:25:56 UTC
The default is "To Page" so any renaming confusion requires some intentional adjustment before. However, I don't see what is resizing; in fact it appears to stick to the cell on insert row/col while otherwise To Page makes the form control sticky at the position.

Ultimately I see no issue from UX POV.
Comment 2 Regina Henschel 2023-06-08 14:06:31 UTC
(In reply to Heiko Tietze from comment #1)
> Ultimately I see no issue from UX POV.

The item "To cell" in the Control Properties dialog make the same as the "To cell (resize with cell)" item in the anchor list in the context menu. That is confusing and needs to be fixed.

The UX question is, how to fix it:
(a) Only rename "To cell" to "To cell (resize with cell)" in the Control Properties dialog.
(b) Change the Control Properties dialog so that is has the same three options than the 'Anchor' item in the context menu.
(c) Remove the 'Anchor' item in the Control Properties dialog.
Comment 3 Heiko Tietze 2023-06-09 07:47:29 UTC
(In reply to Regina Henschel from comment #2)
> The item "To cell" in the Control Properties dialog make the same as the "To
> cell (resize with cell)" item in the anchor list in the context menu. That
> is confusing and needs to be fixed.
"To Cell" does the same as "To Cell (Resize)" (I insert a checkbox into a cell and expect this form control to size with the cell; but it only moves on insert row/col).

> (a) Only rename "To cell" to "To cell (resize with cell)" in the Control
> Properties dialog.
> (b) Change the Control Properties dialog so that is has the same three
> options than the 'Anchor' item in the context menu.
> (c) Remove the 'Anchor' item in the Control Properties dialog.
My first choice would be c) since anchoring is not an intrinsic property (you also do not attach the anchor property to an image). But in this case we have to do the same on other modules too, meaning the anchor for forms in Writer.
Comment 4 Regina Henschel 2023-06-09 09:24:36 UTC
(In reply to Heiko Tietze from comment #3)
> "To Cell" does the same as "To Cell (Resize)" (I insert a checkbox into a
> cell and expect this form control to size with the cell; but it only moves
> on insert row/col).

You are right. I inspect the object with the Development Tools and see 'Cell object' in Anchor and false in 'Resize with cell'. So that has been changed from older versions. But when you save and reload the file the anchor type is changed to "To Page". So there is something wrong with the 'Anchor' option in the Control Properties. That would speak for removing it there.

The anchoring types persist, when they are set from the 'Anchor' item in the context menu.
Comment 5 Heiko Tietze 2023-06-09 10:55:43 UTC
(In reply to Heiko Tietze from comment #3)
> > (c) Remove the 'Anchor' item in the Control Properties dialog.
> My first choice would be c)...

(In reply to Regina Henschel from comment #4)
> That would speak for removing it there.

Seems we are in agreement - and no one else hollered in. Let's remove the anchoring from the object properties and keep it only at the (general) object attributes.