fix cancelAnim must be invocated with window as a context (Chrome, Safari) not root element
fix correct with and height calculation regard to paddings