Method: Walt::Operation::MoveOperation#setup

Defined in:
lib/walt/operation/move.rb

#setup(view, animation) ⇒ Object



58
59
60
61
62
63
64
65
# File 'lib/walt/operation/move.rb', line 58

def setup(view, animation)
  if self.from
    origin = view.frame.origin
    origin.x = (self.from[0] || origin.x) 
    origin.y = (self.from[1] || origin.y)
    view.frame = [origin, view.frame.size]
  end
end