I get a very strange alignment in Text Boxes and text Frames. I first found it with Text Boxes in Draw, and confirmed I got the same thing with Text Boxes in Writer, then (seeing many answers/comments here disparaging Text Boxes) found the same behavior in Frames.
I ask for left justification, and instead of getting
Green: th ;
.attachments-list th
I get a weird alignment
Green:
th ; .attachments-list
th
If I add a bunch of x’s to the first line I get
Green: xxxxxxx th
; .attachments-list th
but only after adding the seventh x to the line. It’s kind of like it’s trying to find/create the longest possible line for the box, and basing everything else around that.
Strange Alignment in Text Boxes and Frames - Example.odt (14.3 KB)
The attached Writer file demonstrates this behavior. The first two (with the dashed border) are Text Boxes - #1 has simply what I want (were it properly formatted) and #2 shows what happens with the added x’s. The last three (with solid borders) show the same behavior with Frames - #3 simple text misaligned, #4 with seven added x’s, and #5 with only six x’s added.
Size of box/frame changes exact alignments, but the strange behavior continues with modification. Feel free to play around with the boxes and frames - but I found no simple algorithm to explain the behavior.
Anybody know what is going on here? Anybody know how to get Text Boxes or text Frames to behave in a predictable fashion, to get what we want?
Version: 7.6.5.2 (X86_64) / LibreOffice Community
Build ID: 60(Build:2)
CPU threads: 8; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 4:7.6.5-0ubuntu0.20.04.1~lo1
Calc: threaded