[Laszlo-user] Using $path prevents view from being visible

Henry Minsky henry.minsky at gmail.com
Mon Jun 18 04:52:32 PDT 2007


For making it visible all the time, try setting visibility="visibile".

    <test visibility="visibile" bgcolor="0x00FF00" y="50"
testattr="$path{'ds:/foo/text()'}" />


A value of "collapse" (the default) will make it invisibile if there is  a
datapath but  no match.

The new "visibility" attribute was supposed to be more CSS-like, but still
compatible
with the pre-4.0 behavior, I will check and see what the issue is...






On 6/17/07, Robin Sheat <robin at kallisti.net.nz> wrote:
>
> Using lps-4.0.2, tested under swf7,8 and dhtml, the box that should be
> green
> doesn't show up. As soon as I change the $path to something else (say,
> remove
> the '$' to make it just a string) it works. However, this kinda kills
> binding. What's going on here?
>
> <canvas width="100" height="100">
>
>         <class name="test" extends="view" height="50" width="${
> parent.width}">
>                 <attribute name="testattr" type="string" />
>         </class>
>
>         <test bgcolor="0xFF0000" />
>
>         <dataset name="ds">
>                 <foo>bar</foo>
>         </dataset>
>
>         <test bgcolor="0x00FF00" y="50" testattr="$path{'ds:/foo/text()'}"
> />
>
> </canvas>
> --
> Robin <robin at kallisti.net.nz> JabberID: <eythian at jabber.kallisti.net.nz>
>
> Hostes alienigeni me abduxerunt. Qui annus est?
>
> PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D
>
>


-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070618/f4ea7061/attachment.html


More information about the Laszlo-user mailing list