vendor/assets/application/examples/sub_atome_manipulation.rb in atome-0.5.6.5.7 vs vendor/assets/application/examples/sub_atome_manipulation.rb in atome-0.5.6.6.0
- old
+ new
@@ -4,15 +4,18 @@
b=box({id: :the_box})
b.text({id: :the_text, left: 90, top: 30, data: :ok})
b.text({id: :the_text2, left: 190, top: 30, data: :hello})
+
wait 1 do
- b.text.left(30)
+ b.text.each_with_index do |el, _index|
+ grab(el).left(30)
+ end
+ # b.text.left(30)
wait 1 do
b.text.color(:white)
b.text.each_with_index do |el, index|
-
grab(el).left(30+30*index)
end
b.color(:black)
end
end
\ No newline at end of file