cdotyone / mochaui

development tree for MochaUI
http://mochaui.org/demo/
Other
290 stars 83 forks source link

IE7 / IE8 / IE9 : Closing a window : other windows toolbars become transp. #109

Open partikule opened 13 years ago

partikule commented 13 years ago

On IE7 / IE8, closing an opened window has a strange effect : Other opened window's toolbars and body becomes transparent.

Seems coming from canvas.

[Edit]

Found that the Chrome memory release in window._doClosingJobs() isn't compatible with IE :

        MUI.each(function(instance){
            if (!instance.isTypeOf('MUI.Window')) return;

            // helps release memory in chrome
            // This was done even the Browser isn't Chrome.
//          if (instance.el.canvas){
            // Added the Chrome check.
            if (Browser.chrome == true && instance.el.canvas){
                instance.el.canvas.height = 0;
                instance.el.canvas.width = 0;
            }
            ...
        });