-
Notifications
You must be signed in to change notification settings - Fork 19
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
Para align misbehaviour #402
Comments
There is a related? bug for Shoes 4 #1559 which looks like this in Shoes3 - this script, 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 |
The second example shows that right-align works for text in the para. You can also comment the hash_items = {:apple => "fruit", :ball => "toy", "cat" => "animal", :dog => "animal", :egg => "food"}
Shoes.app(:title => "Shoes APp", :width => 350, :height => 500 ) do
stack(margin: 10, width: "100%") do
border black, strokewidth: 5
hash_items.each do |k,v|
flow do
border red, strokewidth: 5
stack width: 200 do
para k, align: "left"
end
stack width: 100 do
para v, align: "right"
end
end
end
end
end |
This will do. Thanks, |
Hey
The para align property does not align elements, left and right, as expected
Shouldn't the
right
align, push the para to the window edge?Alternatively, using
right: 0
shoves it way past the window edgeEDIT - on elementary 0.4.1, ubuntu 16.04
The text was updated successfully, but these errors were encountered: