jquery-free-transform icon indicating copy to clipboard operation
jquery-free-transform copied to clipboard

After re-sizing the element position center of parent

Open AnurajRicky opened this issue 11 years ago • 3 comments

I need to align the element center of parent div when i click the button. Before re-sizing this working fine but after re-sizing having trouble. Can you please help me for fix this?

See the fiddle: http://jsfiddle.net/mpanuraj/xUtq6/3/

AnurajRicky avatar Jan 20 '14 09:01 AnurajRicky

you'd want to use the 'getBounds' method of the freetrans object instead of the outerWidth/Height methods. this plugin modifies scale with the CSS3 transform class - which does not affect the DOM's traditional width/height properties.

http://jsfiddle.net/xUtq6/4/

gthmb avatar Jan 21 '14 13:01 gthmb

hmm, the height does not seem to be working as expected...

gthmb avatar Jan 21 '14 13:01 gthmb

Yeah,the horizontal alignment function working perfectly. But I am expecting the vertical too.

AnurajRicky avatar Jan 22 '14 05:01 AnurajRicky