jdmoreira
05-17-2005, 02:28 AM
Hello.
We have detect what it seems to be a bug in modaldialog behaviour.
If you execute this code
<canvas height="300">
<simplelayout axis="x" spacing="20"/>
<modaldialog name="mydialog" width="300" height="200">
<text>Are you really sure you want to do something?</text>
<view align="right" layout="axis:x; spacing:20">
<button onclick="parent.parent.close()">Cancel</button>
<button onclick="parent.parent.close()" isdefault="true">OK</button>
</view>
<simplelayout spacing="5"/>
</modaldialog>
<button onclick="canvas.mydialog.open()">Open Dialog</button>
<edittext text="1234"></edittext>
<inputtext text="texto"></inputtext>
</canvas>
It is a simple variation of the one included in the modaldialog reference, and when you execute it and click on the button, you can see the modal window, but you can also access to the edittext and the inputtext.
Is this a bug?
Any trick to solve this problem?
Thanks.
We have detect what it seems to be a bug in modaldialog behaviour.
If you execute this code
<canvas height="300">
<simplelayout axis="x" spacing="20"/>
<modaldialog name="mydialog" width="300" height="200">
<text>Are you really sure you want to do something?</text>
<view align="right" layout="axis:x; spacing:20">
<button onclick="parent.parent.close()">Cancel</button>
<button onclick="parent.parent.close()" isdefault="true">OK</button>
</view>
<simplelayout spacing="5"/>
</modaldialog>
<button onclick="canvas.mydialog.open()">Open Dialog</button>
<edittext text="1234"></edittext>
<inputtext text="texto"></inputtext>
</canvas>
It is a simple variation of the one included in the modaldialog reference, and when you execute it and click on the button, you can see the modal window, but you can also access to the edittext and the inputtext.
Is this a bug?
Any trick to solve this problem?
Thanks.