Personal tools

Talk:Constraints, events and layouts

From OpenLaszlo

In the following program, what will happen if the "width" of "inner" or "outer" changes, in what order? (i.e. what happens first, then what, then what...)

       <canvas>
           <view name="outer">
               <view name="inner">
                   <method event="onwidth">
                       parent.setAttribute("width", this.width+8);
                   </method>
               </view>
               <method event="onwidth">
                   this.inner.setAttribute("width", this.width-8);
               </method>
           </view>
       </canvas>