Skip to content

align:'right' breaks text elements flow #1559

@lmrodriguezr

Description

@lmrodriguezr

The align: 'right' option for text boxes (e.g., para, title, tagline) appears to break the vertical flow of the element. Interestingly, this doesn't seem to be the case with align: 'center'. It's also not the case when explicitly passing the default align: 'left'.

Here is a tiny app that reproduces the problem:

Shoes.app height: 200, width: 200 do
  stack do
    title 'Center', align: 'center'
    para 'Default'
    para 'Default'
    para 'right-aligned 1', align: 'right'
    para 'right-aligned 2', align: 'right'
    para 'left-aligned 1', align: 'left'
    para 'left-aligned 2', align: 'left'
    para 'centered 1', align: 'center'
    para 'centered 2', align: 'center'
  end
end

screen shot 2018-03-26 at 11 34 17 pm

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions