switched form rmq.device.width to rmq.device.screen_width

This commit is contained in:
Gant
2014-08-05 22:08:41 -05:00
parent 25a5f3926a
commit aee82da297

View File

@@ -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) {