Problem of setting offset in IE/Chrome
I am using jQuery 1.4.2 and I get a strange result when setting offset in IE/Chrome.
I have a jQuery Object "obj" which position style is absolute,
Originally, obj.offset() will return { top: 224, left: 31 }
Then I run obj.offset( { top: 353, left: 122 } );
In Firefox, it works perfectly, obj.offset() return { top: 353, left: 122 }.
However, in IE/Chrome, obj.offset() will return { top: 224, left: 31 }
But then, if I run obj.offset( { top: 353, left: 122 } ); one more time,
IE/Chrome will give correct result, ie. obj.offset() will return { top: 353, left: 122 }.
What is the reason of it?
Is it a bug?
Thank you,
Stephen