Opened 13 years ago
Closed 13 years ago
#7362 closed bug (invalid)
position: absolute is lost when .stop() is used with .show('blind')
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | 1.5 |
Component: | unfiled | Version: | 1.4.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hello,
$('#hoverme-stop').hover(function() {
$(this).find('.help').stop(true, true).show('blind');
}, function() {
$(this).find('.help').stop(true, true).hide('blind');
});
Which works great unless your element is position: absolute. In which case it switches it to position: relative which starts pushing around any succeeding elements. Only happens when stop has an actual animation to stop. If you mouse in an out slowly it works fine. I tried re-adding the position: absolute with the hack:- $(this).stop(true, true).css({position: absolute}).fadeIn(); But this loses the position within the document flow, making it appear at the top of the page. Tested with normal .show() and .fadeIn() and could not replicate, so appears to be specific to using .stop with .show('blind') and .hide('blind').
Lyle
blind
is a jQuery UI effect. You need to report this in the jQuery UI bug tracker.