|
|
|
[
Permlink
| « Hide
]
Max Carlson - 05/Mar/07 11:31 AM
Please diagnose further.
This is some kind of init issue, but I still don't know what. This is what I know so far.
If I change the definition of <modaldialog> from this (I make the dialog initially visible): <class name="modaldialog" extends="windowpanel" x="${(immediateparent.width - this.width)/2}" y="${(immediateparent.height - this.height)/3}" focustrap="true" visible="false"> ... to this: <class name="modaldialog" extends="windowpanel" x="${(immediateparent.width - this.width)/2}" y="${(immediateparent.height - this.height)/3}" focustrap="true" visible="true"> The problem goes away. This isn't a practical solution but it tells me that the visible="false" is preventing something from initializing properly. I don't know why an object derived from <modaldialog> works properly. The basewindow class overrides setVisible() but I haven't found a problem with it. Since the issue occurs only with IE6/IE7, the definition of setVisible() in LzSprite.js may be involved since it runs code particular to IE. Information for the 4.0 release notes:
Using <modaldialog> directly causes a Laszlo application to hang in IE 6/7 under dhtml. Here is an example that does not work properly in IE6/dhtml or IE7/dhtml: <canvas> <button onclick="md.open();">Show Modal Dialog</button> <modaldialog id="md" width="200" height="100" title="Modal Dialog"> <button onclick="parent.close()">OK</button> </modaldialog> </canvas> The workaround is to create your own class that derives from <modaldialog>. The above code can be rewritten as: <canvas> <class name="safemodaldialog" extends="modaldialog"/> <button onclick="md.open();">Show Modal Dialog</button> <safemodaldialog id="md" width="200" height="100" title="Modal Dialog"> <button onclick="parent.close()">OK</button> </safemodaldialog> </canvas> The only change is creating a class <safemodaldialog> that derives from <modaldialog>, and changing any references from <modaldialog> to <safemodaldialog>. This second example works in all supported browsers in dhtml and swf. Actually just a dup of
André Bargull [01/Dec/07 09:26 AM]
Actually just a dup of (trunk 4 build r7457)
Pounce tested on the following: XP/IE6/swf/dhtml XP/IE7/swf/dhtml XP/FF2/swf/dhtml OS X/FF2/swf/dhtml OS X/SAF2/swf/dhtml OS X/SAF3/swf/dhtml Linux/FF2/swf/dhtml |
||||||||||||||||||||||||||||||||||||||||||||||||||||