Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using center with angle: 0 does not center the image at the specified coordinate #109

Open
GoogleCodeExporter opened this issue Mar 24, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. $('#someImg').rotate({angle:0, center: ['50%', '50%']})


What is the expected output? What do you see instead?
The image should be centered at 50% width.
The image is identical to it's version without rotate applied. 


What version of the product are you using? On what operating system?
Using jqueryrotate 2.3 on Chrome 36.0.1985.143 m, Windows 8

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 24 Aug 2014 at 2:34

@GoogleCodeExporter
Copy link
Author

I'm not sure what is wrong .... Here is your test case applied to fiddle.net, 
can you give some more explanation for what is wrong?

http://jsfiddle.net/4vyh27uu/

Original comment by [email protected] on 24 Aug 2014 at 5:01

@GoogleCodeExporter
Copy link
Author

Here's an updated version of the issue: http://jsfiddle.net/4vyh27uu/1/

I guess I would expect the three images to differ in their centers, but they 
are placed identically.

Original comment by [email protected] on 24 Aug 2014 at 6:01

@GoogleCodeExporter
Copy link
Author

There are 2 approaches to make center rotation works and I used the one that is 
used in chromium browser, so center of rotation does not also additionaly shift 
image. Here, this version should give you idea how it's behaving, and yes - its 
intended.

http://jsfiddle.net/4vyh27uu/2/

Original comment by [email protected] on 24 Aug 2014 at 8:15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant