On 11 Nov 2005, at 18:24, Scott Evans wrote:

On Fri, 11 Nov 2005, Adam Wolff wrote:
right now the runtime sets visible to false when opacity goes to 0. 

It does?  I definitely haven't seen that behavior.  I've had to do
  visible=${opacity != 0}

It looks like it does, so long as you have not set visible directly.  Gee, I guess we should read the documentation:

visible
Tag & JS
boolean
Boolean
true

 

A value of true means that this view is shown. A value of false means that this view is hidden. Setting this attribute to null means that the runtime will hide this view when: its opacity is 0, it has a datapath that does not match a node, or it is loading its media. In this case, the the value of the visible member of the view will reflect the view's current visible state. This is the default behavior for this attribute. Note that an otherwise clickable view that is not visible will have no click region will not be clickable. Also be aware that in _javascript_, the && operator does not coerce values to booleans. For instance, given an _expression_ like this: visible="a && b", if a is null, the value returned by the constraint _expression_ will be null -- not false.
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to