PDA

View Full Version : [1.0 Beta] Opera 9 redraw bug



ilazarte
3 Apr 2007, 9:05 AM
Opera 9 is loading pages in the demo app with an incomplete screen redraw.

i.e.:
http://extjs.com/deploy/ext-1.0-beta1/docs/
Loads up with the entire right side blue, and not the correct panel content.

This can be fixed by checking for the opera object, and doing a small hack to get it to render. I was told to do this by a member of the Opera team :). Where it should fall in the Ext code I don't know, but it should be the last thing to happen in order to get the screen the latest visual intent.



if (window.opera) {
document.body.style += '';
}

ExtJsTest
4 May 2009, 5:49 AM
I know this thread is old, but if someone like me gets here through google with the same issue. The following helped me out - in combination with prototype, you can redraw and element with the following function:


Element.addMethods({
redraw: function(element){
element = $(element);
var n = document.createTextNode(' ');
element.appendChild(n);
(function(){n.parentNode.removeChild(n)}).defer();
return element;
}
});

Got that from: http://ajaxian.com/archives/forcing-a-ui-redraw-from-javascript