jQuery width() and css() in firefox and webkit
Edit
spend almost 2 days to fix a UI bug.
It all comes down to the fact that, when I do
var newWidth = 123;
$('#elm').width(newWidth);
the behavior in Firefox and WebKit is different!
somehow there is an off by 1 error in WebKit, so in webkit after running the above code, then run
$('#elm').width()
will gives 122, while in firefox it will give 123!
anyone encounter this or it is a known bug?
It all comes down to the fact that, when I do
var newWidth = 123;
$('#elm').width(newWidth);
the behavior in Firefox and WebKit is different!
somehow there is an off by 1 error in WebKit, so in webkit after running the above code, then run
$('#elm').width()
will gives 122, while in firefox it will give 123!
anyone encounter this or it is a known bug?
jQuery width() and css() in firefox and webkit
Reviewed by DF
on
3:34:00 AM
Rating: