blockui icon indicating copy to clipboard operation
blockui copied to clipboard

Overlay Broken In Ubuntu Firefox

Open jmitchener opened this issue 15 years ago • 5 comments

The overlay is not working in ubuntu's firefox 3.6.10. It appears it is never setting the background-color or opacity attributes in the style tag. I get the following overlay div in firefox 3.6 on the demos page.

jmitchener avatar Oct 09 '10 10:10 jmitchener

that's because for linux the blockui does not apply the opacity for performance issues.

Anyway I modified it and tested it, and I could not notice a delay.

RobinHerbots avatar Nov 17 '10 19:11 RobinHerbots

I had tested it is working with overlay on ff/linux. The performace issue can be in fact of fadeIn on overlay/opacity ...

ricardojlrufino avatar Dec 09 '10 03:12 ricardojlrufino

On line 337, I changed to apply only if the fade is not in ff/linux

if (opts.fadeIn) {
    var cb = opts.onBlock ? opts.onBlock : noOp;
    var cb1 = (opts.showOverlay && !msg) ? cb : noOp;
    var cb2 = msg ? cb : noOp; 
    if (opts.showOverlay)
        if(!($.browser.mozilla && /Linux/.test(navigator.platform))){
            lyr2._fadeIn(opts.fadeIn, cb1);
        }else{
            lyr2.show();
        }
    if (msg)
        lyr3._fadeIn(opts.fadeIn, cb2);
}

ricardojlrufino avatar Dec 09 '10 03:12 ricardojlrufino

Have you noticed a delay when using fadein in ff/linux?

RobinHerbots avatar Dec 09 '10 09:12 RobinHerbots

I'm not seeing any delays, but I got the driver installed nvidia ... others have not, this delay may have noticed ... The idea is to apply only to fade in the message if ff / linux, not on overlayMask

And overlayMask not handle the opacity via JS in chrome, only by using CSS: div.blockOverlay { filter: alpha (opacity = 50); opacity: 0.5; }

I made some modifications, if you can arrange for you.

ricardojlrufino avatar Dec 09 '10 20:12 ricardojlrufino