Skip to content

Button text won't align left #974

@fu-raz

Description

@fu-raz

Bug description

Whenever I add a button object and set the align attribute to "left" the text still aligns in the center. I'm using openHASP 0.7.0-rc12 on a Tuya display

To Reproduce

Using the following json to create a button (doesn't matter if it's on page 0, 1 or whatever).

{"page":0,"id":1,"obj":"btn","x":10,"y":12,"w":300,"h":40,"border_side":0,"text":"\uE6A1 Title","text_font":38,"align":"left","bg_color":"#EFD4FB","bg_grad_color":"#EFD4FB","bg_grad_dir":0,"text_color":"#5A4095","action":"p1"}

I have also tried "align": 7, "text_align", "value_align".

Expected behavior

The text in the button should align to the left

Screenshots or video

Image Here I added the border to show the width of the element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions