[Laszlo-dev] finally got a test case for the z-order bug in amazon/DHTML
Henry Minsky
henry.minsky at gmail.com
Mon Nov 20 13:48:01 PST 2006
Put the code below into demos/amazon/bug.lzx and run it. If you click the
button, in DHTML, the red view will jump up to obscure the "search" button
view.
This does not happen in swf. It appears that the cdinfo's parent is also
being moved to front, but this only occurs when the indicated view
"recommend"
exists and is an earlier sibling to the cdinfo view. Something about
bringToFront is caring about the number of siblings??
<canvas width="780" height="240" bgcolor="#EAEAEA" debug="false"
fontsize="8">
<!-- The bug in DHTML is that when you click the button to call
cdinfo.bringToFront(),
cdinfo's parent view, main, also goes to the front, obscuring the
"search" view.
-->
<debug x="250" height="200" />
<include href="resources.lzx"/>
<view width="${parent.width}">
<simplelayout axis="y"/>
<view width="${parent.width}">
<view id="main" width="987" height="480" x="-215" >
<!-- if this view is not here, then the bug with
bringToFront doesn't occur! -->
<view id="recommend" x="223" y="10" width="10" height="10"
/>
<view id="cdinfo" x="223" y="10" width="${parent.width-2*x}"
height="${parent.height-y}"
bgcolor="#ff0000" font="Arial,Helvetica"
fontsize="11">
</view>
</view>
<view id="search" resource="search_butt" y="1" />
</view>
</view>
<button x="552" y="40" onclick="cdinfo.bringToFront()">
cdinfo.bringToFront()</button>
</canvas>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20061120/dbbc6c98/attachment.html
More information about the Laszlo-dev
mailing list