Update SpriteClip.js

Fixed a problem with calculating frame positions when layout is vertical.