[Solved] Incorrect Offset for Text in Shape
Posted: Sat Feb 04, 2023 4:05 pm
Hi all,
This is for LibreOffice but it is my understanding that the behavior should mimic that of OpenOffice Draw.
When adding text in a shape you can change the Text Attributes parameters to offset the location of the text within the box. This works as expected as long as the the anchor point of the text does not exceed the bounds of the shape. Setting the offset to a value larger than the width of the shape has no effect on the text location.
https://www.dropbox.com/s/vblvwgvqafsp3 ... r.png?dl=0
A workaround is to know the width of the text "label" and spoof LO into offsetting it to the desired location. This is very clunky, the width of the "label" is dynamic and changes as the text is changed.
https://www.dropbox.com/s/2vb94l2znbuft ... d.png?dl=0 Another way around this is to create a second shape, large enough to include the spacing to the label. But this is also undesired as it creates two objects for every instance and if you're working with hundreds of shapes it becomes frustrating. You could also create a borderless unfilled shape to just hold the text and position it next to the initial object but this also suffers from the same problem, you double the amount of objects.
I was wondering if there's a more human-friendly workaround to this or if this can be submitted to the bug list.
/Alex
This is for LibreOffice but it is my understanding that the behavior should mimic that of OpenOffice Draw.
When adding text in a shape you can change the Text Attributes parameters to offset the location of the text within the box. This works as expected as long as the the anchor point of the text does not exceed the bounds of the shape. Setting the offset to a value larger than the width of the shape has no effect on the text location.
https://www.dropbox.com/s/vblvwgvqafsp3 ... r.png?dl=0
A workaround is to know the width of the text "label" and spoof LO into offsetting it to the desired location. This is very clunky, the width of the "label" is dynamic and changes as the text is changed.
https://www.dropbox.com/s/2vb94l2znbuft ... d.png?dl=0 Another way around this is to create a second shape, large enough to include the spacing to the label. But this is also undesired as it creates two objects for every instance and if you're working with hundreds of shapes it becomes frustrating. You could also create a borderless unfilled shape to just hold the text and position it next to the initial object but this also suffers from the same problem, you double the amount of objects.
I was wondering if there's a more human-friendly workaround to this or if this can be submitted to the bug list.
/Alex