https://bugs.documentfoundation.org/show_bug.cgi?id=145519

            Bug ID: 145519
           Summary: LODraw: Vertical alignment of text anchor, set in a
                    style, does not apply in shapes
           Product: LibreOffice
           Version: 7.2.2.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Draw
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: jamshar...@zoho.com

Description:
If I define a desired text positioning (anchor) in a graphics style in LO Draw,
and then apply this style to a shape, the shape receives only the horizontal
positioning from the style's anchor. It ignores vertical positioning from the
style.

Steps to Reproduce:
1. Create a new drawing.
2. Create a new graphics style underneath "Object without fill." In this new
style, set the text anchor to top-left.
3. Create a rectangle (not using "text box" -- the drawing shape in the left
toolbar).
4. Hit F2 and type some text. It will appear at the default center anchor.
5. Now assign this rectangle to the new style created in step 2.

Actual Results:
Actual behavior: Only the horizontal alignment from the style applies. The text
is displayed at left, but vertically centered (contrary to the style). (Note
that the standard Object without fill style specifies an H=center, V=top
anchor, but the shape ends up with V=center too. So it isn't only for
user-created styles.)

Expected Results:
Expected behavior: The text in the rectangle should be positioned fully
according to the anchor (top left).


Reproducible: Always


User Profile Reset: No



Additional Info:
If you select the rectangle and go to Format --> Text attributes, here, the
anchor is H=left, V=center.

So I would have to guess that the vertical alignment property is not being
applied properly to the shape.

Note, though, that it does work to set the anchor under Format --> Text
attributes and then create a new style based on the selection. This is a
not-entirely-unacceptable workaround; however, users may reasonably expect the
style definition to be applied, and it isn't.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to