Bug 129555 - Caption of textbox not placed at top of textbox (see c1)
Summary: Caption of textbox not placed at top of textbox (see c1)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Textbox Caption
  Show dependency treegraph
 
Reported: 2019-12-22 19:24 UTC by FD
Modified: 2023-05-14 18:36 UTC (History)
4 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 FD 2019-12-22 19:24:04 UTC
Description:
When I add a caption to a textbox and specify I want the caption to be above, it appears underneath the textbox.

Steps to Reproduce:
1.create a textbox with the button "insert text box" and write some text
2.right click on the textbox and click on insert caption
3.write some text in "caption" and turn the position to above
4.click OK

Actual Results:
the caption appears in a frame but underneath the textbox

Expected Results:
the caption has to be above


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
I've tried it on linux kubuntu 18.04.3 LTS and on Windows 8.1 and I've got the same result.
Comment 1 sdc.blanco 2019-12-22 22:43:13 UTC
Can reproduce with

Version: 6.4.0.0.beta1 (x64)
Build ID: 4d7e5b0c40ed843384704eca3ce21981d4e98920
CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: GL; VCL: win; 
Locale: en-US (en_DK); UI-Language: en-US
Calc: CL

Additional information:

1.  Workaround (or preferable approach):  Insert frame (interactively),  right-click on frame-insert caption, in Position field, choose "Start".

(friendly warning.  If you use frames, and intend to export to .doc/docx, then do not anchor any images or shapes to the frame, but to a paragraph in the frame, see bug #67318 and bug #49184). If you will not export, then no warnings.

2.  Reason why initial procedure does not work is:

    a.  textbox is a Shape.
    b.  By inserting a caption to this shape, a frame is introduced that starts at the top of the textbox -- making it impossible for the caption to appear at the top.
    c.  Resizing the textbox or changing its wrap will allow the caption to come to the top.
    d.  But this textbox cannot be anchored to the frame that was created -- so the textbox will/can be moved around the canvas, without the caption following along. (not a good situation).
    e.  Therefore, it is wise to make the frame bigger than than the textbox, then you can anchor it to the frame. 

3.  Maybe this bug should be described more in terms of the relation between the frame and shape when a caption is added to a shape, because the same "behavior" can also be observed/produced with geometric shapes (including lines), QR codes (in 6.4) -- where resizing the textbox in relation to the frame will allow the caption to come to the top.

I will leave the question to more knowledgeable persons about whether this bug report should be adapted to this more fundamental explanation about what happens when captions are added to shapes, or whether I should file a separate report.
Comment 2 FD 2019-12-23 10:27:13 UTC
Thanks for your quick answer, the workaround and the additional informations. I'm not accustomed to post bugs, so if I've got to do something else, do not hesitate to say it !
Comment 3 Timur 2019-12-24 16:46:38 UTC
Option "Above" is seen in LO 4.2, in LO 4.0 just Below was possible.
Comment 4 Heiko Tietze 2020-01-08 10:17:46 UTC
Clearly a bug (confirming with 6.2.8.2), no need for UX input.
Comment 5 QA Administrators 2022-01-08 03:51:02 UTC Comment hidden (obsolete)
Comment 6 FD 2022-01-17 10:36:42 UTC
Hello,
Tu answer to QA Administrators, the bug is still there whith Libre Office 7.2.5.2.
I noticed the result is not the same when you do the action of adding à caption à second time to the same textbox (maybe because the frame around the textbox has already been created). At the second attempt, the place of the caption is good (at the top).
Comment 7 BogdanB 2023-05-14 18:36:48 UTC
Also in
Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: aa0cbe2c82bbc2295b51357378a68da0d64a44a0
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded