Fix drawing outside of view bounds when animating

There was an issue where child views would draw
outside their given bounds when animating (for 
instance if the child view has a colored 
background, this background would extend outside 
the view). This commit fixes this issue.