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

Bubble image not positioned correctly on rotation #18

zmandel opened this Issue Jun 25, 2014 · 0 comments


None yet
1 participant

zmandel commented Jun 25, 2014

Hi, under certain situations, the rotation is not centered correctly, might be because Im using the library from a chrome extension.
My fix was to add -webkit-transform-origin on cssRotate:

cssRotate: function () {
'-moz-transform': 'rotate(' + this.rotateDeg + 'deg)',
'-webkit-transform': 'rotate(' + this.rotateDeg + 'deg)',
'-o-transform': 'rotate(' + this.rotateDeg + 'deg)',
'transform': 'rotate(' + this.rotateDeg + 'deg)',
'-webkit-transform-origin-x': Math.floor(this.css.width/2)+ 'px',
'-webkit-transform-origin-y': Math.floor(this.css.height / 2) + 'px'

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