I have this fiddle which if you look at it in Chrome or IE works fine. You just click on the orange box and the box slides out, and click again and it returns to it's exact original position.
However if you look at it in Firefox ( make sure the scrollbar is showing in the bottom right frame) then the CSS which positions the box
right: -290px;
sets the position relative to the left edge of the scrollbar as I'd expect...
but the jQuery (note =-290px which should reset it to where it was on second click )
$('#slideClick').toggle(function() {
$(this).parent().animate( { right: '0px' }, {queue:false, duration: 500});
}, function() {
$(this).parent().animate( { right: '-290px' }, {queue:false, duration: 500});
});
sets the position relative to the right edge of the scrollbar, giving a 17px inconsistency.
Is this a known bug, or am I just mistaken somewhere. What is the workaround if it's a bug?