code-dot-org/blockly — pull request #650 by cpirich (2014-06-08 14:30:03+00:00)
Title: [#70373766]: setSpritePosition: take into account sprite size

Setting a sprite to the center/middle or right/bottom position needs to take into account the sprite's size. Previously, I used a table which assumed that all sprites were 100x100 (2x2 on the grid coordinate system). Now, we need to compute the x,y position for the elements at runtime.