I'm having trouble with the setRect() function in IE6. Yes, IE6. I will celebrate with copious amounts of beer when the day comes that I no longer have to support this abomination of a browser. Until that day...
The issue I'm having is that after I call Canvas.setRect(), the canvas (a simple htmlPane in the attached example) disappears. It works in other browsers (FF, Chrome, Safari, higher versions of IE).
Any ideas on how to get this working? Here's a simple example that reproduces the problem:
The issue I'm having is that after I call Canvas.setRect(), the canvas (a simple htmlPane in the attached example) disappears. It works in other browsers (FF, Chrome, Safari, higher versions of IE).
Any ideas on how to get this working? Here's a simple example that reproduces the problem:
Code:
<html> <head> <script type="text/javascript">var isomorphicDir = "/~mstickel/isomorphic/";</script> <script type="text/javascript" src="isomorphic/system/modules/ISC_Core.js"></script> <script type="text/javascript" src="isomorphic/system/modules/ISC_Foundation.js"></script> <script type="text/javascript" src="isomorphic/system/modules/ISC_Containers.js"></script> <script type="text/javascript" src="isomorphic/system/modules/ISC_Grids.js"></script> <script type="text/javascript" src="isomorphic/system/modules/ISC_Forms.js"></script> <script type="text/javascript" src="isomorphic/system/modules/ISC_DataBinding.js"></script> <script type="text/javascript" src="isomorphic/skins/Enterprise/load_skin.js"></script> </head> <body> <script type="text/javascript"> function doResize() { foo.setRect(50,150,100,100); }; isc.HTMLPane.create({ ID: "foo", top: 150, left: 50, width: isc.Page.getWidth()-100, height: isc.Page.getHeight()-250, border: "1px solid red", position: "absolute", matchElement: true, contents:"<p style='padding: 3px;'>Content goes here</p>" }); isc.Page.setEvent("resize", "doResize()"); </script> </body> </html>
Comment