diff --git a/motion/ruby_motion_query/animations.rb b/motion/ruby_motion_query/animations.rb index 16a66c6..2e43bd1 100644 --- a/motion/ruby_motion_query/animations.rb +++ b/motion/ruby_motion_query/animations.rb @@ -253,13 +253,13 @@ module RubyMotionQuery animations: ->(aq, return_var) { case to_direction when :right - aq.move(l: rmq.device.width) + aq.move(l: rmq.device.screen_width) when :left - aq.move(l: -rmq.device.width) + aq.move(l: -rmq.device.screen_width) when :top - aq.move(t: -rmq.device.height) + aq.move(t: -rmq.device.screen_height) else :bottom - aq.move(t: rmq.device.height) + aq.move(t: rmq.device.screen_height) end }, completion: ->(did_finish, q) {