-
3 Apr 2007 9:05 AM #1
[1.0 Beta] Opera 9 redraw bug
[1.0 Beta] Opera 9 redraw bug
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.
Code:if (window.opera) { document.body.style += ''; }
-
4 May 2009 5:49 AM #2
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:
Got that from: http://ajaxian.com/archives/forcing-...rom-javascriptCode:Element.addMethods({ redraw: function(element){ element = $(element); var n = document.createTextNode(' '); element.appendChild(n); (function(){n.parentNode.removeChild(n)}).defer(); return element; } });


Reply With Quote