The platform team needs to have a little pow-wow about how to fix this. <br><br><br><br><div><span class="gmail_quote">On 10/21/07, <b class="gmail_sendername">Lou Iorio</b> &lt;<a href="mailto:liorio@laszlosystems.com">liorio@laszlosystems.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><div style="margin: 0px;"><a href="http://www.openlaszlo.org/jira/browse/LPP-4029" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
LPP-4029</a></div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">This is example&nbsp;29.14 in Chapter 29. Methods, Events, Handlers, and Attributes of&nbsp;the dguide:</div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px;">&lt;canvas height=&quot;20&quot;&gt;</div><div style="margin: 0px;">&nbsp; &lt;view&gt;</div><div style="margin: 0px;">&nbsp; &nbsp; &lt;attribute name=&quot;width&quot; type=&quot;number&quot; value=&quot;20&quot;/&gt;
</div><div style="margin: 0px;">&nbsp; &nbsp; &lt;attribute name=&quot;height&quot; type=&quot;number&quot; value=&quot;20&quot;/&gt;</div><div style="margin: 0px;">&nbsp; &nbsp; &lt;attribute name=&quot;bgcolor&quot; type=&quot;color&quot; value=&quot;red&quot;/&gt;
</div><div style="margin: 0px;">&nbsp; &lt;/view&gt;</div><div style="margin: 0px;">&lt;/canvas&gt;</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">which causes the compiler to output these warnings:
</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">methods-events-attributes-$14.lzx:3:55: In element &#39;view&#39; attribute &#39;width&#39; with type &#39;number&#39; is overriding parent class attribute with same name but different type: sizeExpression
</div><div style="margin: 0px;">methods-events-attributes-$14.lzx:4:56: In element &#39;view&#39; attribute &#39;height&#39; with type &#39;number&#39; is overriding parent class attribute with same name but different type: sizeExpression
</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">The reference says that width and height are of type sizeExpression, but there&#39;s no mention of sizeExpression in the dguide.</div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px;">I can stop the error in two ways:</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">change the type from number to sizeExpression:</div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px;">&lt;canvas height=&quot;20&quot;&gt;</div><div style="margin: 0px;">&nbsp; &lt;view&gt;</div><div style="margin: 0px;">&nbsp; &nbsp; &lt;attribute name=&quot;width&quot; type=&quot;sizeExpression&quot; value=&quot;20&quot;/&gt;
</div><div style="margin: 0px;">&nbsp; &nbsp; &lt;attribute name=&quot;height&quot; type=&quot;sizeExpression&quot; value=&quot;20&quot;/&gt;</div><div style="margin: 0px;">&nbsp; &nbsp; &lt;attribute name=&quot;bgcolor&quot; type=&quot;color&quot; value=&quot;red&quot;/&gt;
</div><div style="margin: 0px;">&nbsp; &lt;/view&gt;</div><div style="margin: 0px;">&lt;/canvas&gt;</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">remove the type attribute, which I don&#39;t think detracts from this example:
</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">&lt;canvas height=&quot;20&quot;&gt;</div><div style="margin: 0px;">&nbsp; &lt;view&gt;</div><div style="margin: 0px;">&nbsp; &nbsp; &lt;attribute name=&quot;width&quot; value=&quot;20&quot;/&gt;
</div><div style="margin: 0px;">&nbsp; &nbsp; &lt;attribute name=&quot;height&quot; value=&quot;20&quot;/&gt;</div><div style="margin: 0px;">&nbsp; &nbsp; &lt;attribute name=&quot;bgcolor&quot; type=&quot;color&quot; value=&quot;red&quot;/&gt;
</div><div style="margin: 0px;">&nbsp; &lt;/view&gt;</div><div style="margin: 0px;">&lt;/canvas&gt;</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">Is one better than the other?</div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px;">Thanks,</div><span class="sg"><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">Lou</div><div style="margin: 0px;"><br></div></span></div></blockquote></div>
<br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br>