Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

align:'right' breaks text elements flow #1559

Open
lmrodriguezr opened this issue Mar 27, 2018 · 1 comment
Open

align:'right' breaks text elements flow #1559

lmrodriguezr opened this issue Mar 27, 2018 · 1 comment
Labels
Milestone

Comments

@lmrodriguezr
Copy link
Contributor

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!

@jasonrclark
Copy link
Member

Great catch @lmrodriguezr, and a nice simple sample app to demonstrate it. I've had to take some time off shoes for some eye issues, but am hoping to hop back in soon and will take a look at this.

@jasonrclark jasonrclark added the bug label May 4, 2018
@jasonrclark jasonrclark added this to the 4.0.x milestone May 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants