mirror of
https://github.com/zhigang1992/rmq.git
synced 2026-01-12 17:52:17 +08:00
switched form rmq.device.width to rmq.device.screen_width
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user