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> <<a href="mailto:liorio@laszlosystems.com">liorio@laszlosystems.com
</a>> 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 29.14 in Chapter 29. Methods, Events, Handlers, and Attributes of the dguide:</div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px;"><canvas height="20"></div><div style="margin: 0px;"> <view></div><div style="margin: 0px;"> <attribute name="width" type="number" value="20"/>
</div><div style="margin: 0px;"> <attribute name="height" type="number" value="20"/></div><div style="margin: 0px;"> <attribute name="bgcolor" type="color" value="red"/>
</div><div style="margin: 0px;"> </view></div><div style="margin: 0px;"></canvas></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 'view' attribute 'width' with type 'number' 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 'view' attribute 'height' with type 'number' 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'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;"><canvas height="20"></div><div style="margin: 0px;"> <view></div><div style="margin: 0px;"> <attribute name="width" type="sizeExpression" value="20"/>
</div><div style="margin: 0px;"> <attribute name="height" type="sizeExpression" value="20"/></div><div style="margin: 0px;"> <attribute name="bgcolor" type="color" value="red"/>
</div><div style="margin: 0px;"> </view></div><div style="margin: 0px;"></canvas></div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">remove the type attribute, which I don't think detracts from this example:
</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;"><canvas height="20"></div><div style="margin: 0px;"> <view></div><div style="margin: 0px;"> <attribute name="width" value="20"/>
</div><div style="margin: 0px;"> <attribute name="height" value="20"/></div><div style="margin: 0px;"> <attribute name="bgcolor" type="color" value="red"/>
</div><div style="margin: 0px;"> </view></div><div style="margin: 0px;"></canvas></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>