firebug / pixel-perfect

Other
55 stars 15 forks source link

Position is incorrect when layer is scaled #21

Open SebastianZ opened 9 years ago

SebastianZ commented 9 years ago

When a layer is scaled its position does not correspond to the values within the X and Y field anymore. This is, because the layer is scaled around its center without adjusting its x and y values.

So either the x and y values need to be changed accordingly when scaling the layer or the layer needs to be scaled only to the right and bottom. The latter probably makes more sense as people normally move the layer to a specific position.

Tested with Firefox 39.0a1 + Pixel Perfect 2.0b1 on Win8.1.

Sebastian