Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Try to add :right style option. Now it works almost like Red Shoes. B…

…ut yeah... "almost". :-P
  • Loading branch information...
commit 8ff44d78c9944bba875bc8523e262e6a0b2b6c9d 1 parent 42a2971
@ashbb authored
View
2  VERSION
@@ -1 +1 @@
-0.7.167
+0.7.168
View
8 lib/shoes/basic.rb
@@ -65,10 +65,14 @@ def center_at x, y
def positioning x, y, max
if parent.is_a?(Flow) and x + @width <= parent.left + parent.width
- move3 x + parent.margin_left, max.top + parent.margin_top
+ x = @right ? parent.left + parent.width - @width - @right : x + parent.margin_left
+ y = max.top + parent.margin_top
+ move3 x, y
max = self if max.height < @height
else
- move3 parent.left + parent.margin_left, max.top + max.height + parent.margin_top
+ x = @right ? parent.left + parent.width - @width - @right : parent.left + parent.margin_left
+ y = max.top + max.height + parent.margin_top
+ move3 x, y
max = self
end
max
View
4 purple_shoes.gemspec
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = "purple_shoes"
- s.version = "0.7.167"
+ s.version = "0.7.168"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["ashbb"]
- s.date = "2012-05-18"
+ s.date = "2012-05-19"
s.description = "Purple Shoes is one of colorful Shoes, written in JRuby and SWT."
s.email = "ashbbb@gmail.com"
s.executables = ["pshoes"]
View
2  static/manual-en.txt
@@ -1456,8 +1456,6 @@ element so that its own right edge and the right edge of its slot touch.
Whereas `:right => 20` will position the right edge of the element off to the
left of its slot's right edge by twenty pixels.
-'''Note:''' Purple Shoes doesn't support `:right` style.
-
=== :rise » a number ===
For: ''banner, caption, inscription, para, span, subtitle, tagline, title''.
Please sign in to comment.
Something went wrong with that request. Please try again.