Skip to main content
timuric
Participating Frequently
August 21, 2013
Question

Layer bounds bug

  • August 21, 2013
  • 1 reply
  • 965 views

I am getting wrong layer bounds number for a vector shape. Take a look at this file http://d.pr/f/z43x all vector shapes are identical and are copies of each other, but if you try to access "Rectangle 1 copy" bounds, you will see that it will return "100 px,0 px,201 px,100 px" instead of proper "100 px,0 px,200 px,100 px"

I spent alot of time writing extension, and because of this bug I can't finish my extension. Please advice what to do. Thank you!

This topic has been closed for replies.

1 reply

Inspiring
August 21, 2013

The path( and copies ) used as vector mask is not aligned to the pixel grid. Photoshop will round to the nearest whole pixel when getting the bounds.

If you check the bounds of the first layer you will see that it is also 101 pixels wide.

timuric
timuricAuthor
Participating Frequently
August 22, 2013

But the size of the vector mask is shown as 100px in option panel http://d.pr/i/dL5 , and if you use transform it will also show that the size is 100.00 px. And using marquee to measure results will 100px, and also position of this vector mask is set to 0 decimals

I just made a 100x100 rectangle in one document and got correct boundries, and then moved the object it to the document I attached in initial post and got boudries increased by one pixel. So it is definetly a bug

timuric
timuricAuthor
Participating Frequently
September 12, 2013

Any suggestions how to make this bug aknowledged?