vikach / svg-edit

Automatically exported from code.google.com/p/svg-edit
0 stars 0 forks source link

Selection box doesn't rotate on angle-change in Webkit browsers #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create any element
2. Change its angle

What is the expected output? What do you see instead?
The selection box should rotate with the element, but doesn't.

This isn't just a recent regression, it seems this fails in all revisions 
since the functionality was originally added.

Original issue reported on code.google.com by adeve...@gmail.com on 26 Aug 2009 at 8:30

GoogleCodeExporter commented 9 years ago

Original comment by codedr...@gmail.com on 26 Aug 2009 at 9:16

GoogleCodeExporter commented 9 years ago
Oh, good bug!

This looks like it's because Webkit does something which (I think) is naughty.  
When
I do 

   transform="rotate(50,200,300)"

Webkit keeps this stored as a matrix transform and when you do
getAttribute("transform") returns back:

   transform="matrix(.....)"

This happens for any transform (translation, scaling, rotation).

In my code, I check in a couple places for rotate(), scale() transforms.  We 
need to
think about how to fix this.

Original comment by codedr...@gmail.com on 26 Aug 2009 at 9:23

GoogleCodeExporter commented 9 years ago
On Opera 10 under Windows XP, the bounding box of a text element, resized or 
not,
does not rotate.
On Safari / Windows, it also doesn't rotate, as mentionned above.

It does rotate on Opera 9.60 / Ubuntu, Firefox Windows and Firefox / Ubuntu

Original comment by worms_...@yahoo.com on 27 Aug 2009 at 12:06

GoogleCodeExporter commented 9 years ago
Fixed in r483

Original comment by codedr...@gmail.com on 27 Aug 2009 at 4:01