malsup / blockui

jQuery BlockUI Plugin
http://jquery.malsup.com/block/
1.69k stars 506 forks source link

blocking a div blocks full page after block/unblock/block in latest version #69

Open BenKelada opened 11 years ago

BenKelada commented 11 years ago

blocking a div blocks full page after block/unblock/block in latest version

It is caused by this code in version 2.60 around line 495:

/* - this causes problems, whenrunning block / unblock / block if ($el.data('blockUI.static')) { $el.css('position', 'static'); // #22 } */

To test run block/unblock/block on a div with and without the above code

malsup commented 11 years ago

Can you provide a link that shows the problem?

On Mon, May 13, 2013 at 10:03 PM, berserkk notifications@github.com wrote:

blocking a div blocks full page after block/unblock/block in latest version

It is caused by this code in version 2.60 around line 495:

/* - this causes problems, whenrunning block / unblock / block if ($el.data('blockUI.static')) { $el.css('position', 'static'); // #22https://github.com/malsup/blockui/issues/22 } */

To test run block/unblock/block on a div with and without the above code

— Reply to this email directly or view it on GitHubhttps://github.com/malsup/blockui/issues/69 .

rosenfeld commented 11 years ago

I'm experiencing this issue as well after upgrading but I can't replicate it in sample app... For Chrome, setting 0 to fadeIn and fadeOut and ignoreIfBlocked to true has fixed the issue, but it is still present in Firefox Nightly...

rosenfeld commented 11 years ago

But commenting the mentioned code didn't fix the issue to me in FF

rosenfeld commented 11 years ago

I'm using jQuery layout and blockUI is blocking the entire left pane instead of just the requested divs

rosenfeld commented 11 years ago

Sorry for the noise. I'm pretty sure this is a regression in Firefox Nightly. The blocked div has position:relative and the blockUI element is a direct child of it and has position: absolute, top: 0. So far so good, but Firefox Nightly isn't considering the top 0 relative to the blocked div with position:relative, but it's considering the distance to the top of the left pane for some reason. Testing on Iceweasel 22.0 is working just fine.

rosenfeld commented 11 years ago

Firefox Aurora (24.0) is fine as well. Just Nightly has the regression as of today

malsup commented 11 years ago

Thanks for the update.

On Fri, Jul 19, 2013 at 9:25 AM, Rodrigo Rosenfeld Rosas < notifications@github.com> wrote:

Firefox Aurora (24.0) is fine as well. Just Nightly has the regression as of today

— Reply to this email directly or view it on GitHubhttps://github.com/malsup/blockui/issues/69#issuecomment-21248919 .