| Summary: | Default anchor value of macro added control to a Base form should be page not character EDITING | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Leslie <sidermaniac> |
| Component: | Base | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | enhancement | CC: | heiko.tietze, iplaw67, robert |
| Priority: | medium | Keywords: | bibisectRequest, regression |
| Version: | 7.2.3.2 release | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://bugs.documentfoundation.org/show_bug.cgi?id=99646 https://bugs.documentfoundation.org/show_bug.cgi?id=149369 |
||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Attachments: |
Base file showing unwanted anchor setting
Anchor will be set to page here. |
||
|
Description
Leslie
2021-12-28 04:01:28 UTC
Created attachment 177164 [details]
Base file showing unwanted anchor setting
Open the base file and double click on 'testform' and it will add a control to the form.
Confirming with Version: 7.2.1.2 / LibreOffice Community Build ID: 87b77fad49947c1441b67c559c339af8f3517e22 CPU threads: 8; OS: Mac OS X 10.16; UI render: default; VCL: osx Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR Calc: threaded Tried this one: Opened the form for editing. Switched Design Mode off. Pressed the button. Control appears. Control Properties → Anchor → To Page will appear. Tested with LO 7.3.0.1 on OpenSUSE 15.3 64bit rpm Linux. Couldn't find a buggy behavior here. Anchor is To Paragraph for me. Please test again. Version: 7.3.0.3 / LibreOffice Community Build ID: 30(Build:3) CPU threads: 8; OS: Linux 5.16; UI render: default; VCL: kf5 (cairo+xcb) Locale: de-DE (en_US.UTF-8); UI: en-US 7.3.0-4 Calc: threaded Created attachment 178277 [details] Anchor will be set to page here. Tested again. 1. Right mouse click on form → Edit 2. Switch Design mode off 3. Press button 4. Switch Design mode on 5. Look at the properties of the field. → Field is shown as anchored to page. Tested with Version: 7.3.1.1 / LibreOffice Community Build ID: 349cd3ad57dce98d6b54b76f8e9f456ac7d7edb7 CPU threads: 6; OS: Linux 5.3; UI render: default; VCL: kf5 (cairo+xcb) Locale: de-DE (de_DE.UTF-8); UI: en-US Calc: threaded on openSuSE 15.3 64bit rpm Linux My scenario in Writer with a new document (same happens with Base): 1. Form > Text Box 2. Form > Control Properties => Anchor = To Paragraph (changing it is possible, of course) While playing around I managed to reproduce the issue and newly added control went into the document anchored As Character. Happens when the command is still active (checkmark set). Solution is to fix the checked state, which is wrong anyway. It should be active only while drawing the object. Wonder if this is a regression. I'm sorry, is there an API missing to set the wanted anchoring from macro? I see that it works nicely in the attachment 177164 [details], setting control's AnchorType. If it's there, what is the reason to change the default here? Comment 6 is completely irrelevant, since it talks about UI, not macros. |