Maybe you got the wrong patch, lemme send again.<br><br>The change is just two lines, I changed the check that was<br><br>-&nbsp;&nbsp;&nbsp; if (!(&#39;height&#39; in args) || (args.height == null)) {<br><br>to instead be <br>+&nbsp;&nbsp;&nbsp; if (!this.hassetheight) {
<br><br>LzView has already computed hassetheight, and that computation factors in if there is a constraint on height, which the simple &quot;!(&#39;height&#39; in args) || (args.height == null))&quot; test did not do. <br>
<br><br><br>===================================================================<br>--- LzText.lzs&nbsp;&nbsp;&nbsp; (revision 5701)<br>+++ LzText.lzs&nbsp;&nbsp;&nbsp; (working copy)<br>@@ -233,7 +233,7 @@<br>&nbsp;&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp; if&nbsp; single line, use font line height
<br>&nbsp;&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp; else get height from flash textobject.textHeight <br>&nbsp;&nbsp;&nbsp;&nbsp; // <br>-&nbsp;&nbsp;&nbsp; if (!(&#39;height&#39; in args) || (args.height == null)) {<br>+&nbsp;&nbsp;&nbsp; if (!this.hassetheight) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.sizeToHeight = true;<br>&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp; else {
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.setHeight(args.height);<br>@@ -381,7 +381,6 @@<br>&nbsp;&nbsp;&nbsp;&nbsp; // recalculate height<br>&nbsp;&nbsp;&nbsp;&nbsp; if (this.sizeToHeight) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var h = this.sprite.getTextfieldHeight();<br>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Debug.write(&#39;LzText.setText
 computed height&#39;, h, this.sprite);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (h &gt; 0) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.setHeight(h);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>@@ -659,7 +658,6 @@<br>&nbsp;&nbsp;&nbsp;&nbsp; //resizable fields adjust their height<br>&nbsp;&nbsp;&nbsp;&nbsp; if (this.sizeToHeight) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var h = this.sprite.getTextfieldHeight();<br>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Debug.write(&#39;LzText.setText computed height&#39;, h, this.sprite);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (h &gt; 0) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.setHeight(h);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br><br>
<div><span class="gmail_quote">On 7/19/07, <b class="gmail_sendername">P T Withington</b> &lt;<a href="mailto:ptw@openlaszlo.org">ptw@openlaszlo.org</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;">
Can you explain this change?&nbsp;&nbsp;I would have thought the<br>super.construct would have already correctly compute hassetheight<br>from args.&nbsp;&nbsp;Why are you having to recompute it from scratch here?<br><br>On 2007-07-19, at 15:30 EDT, Henry Minsky wrote:
<br><br>&gt; Change 20070719-hqm-6 by hqm@IBM-2E06404CB67 on 2007-07-19 15:26:44<br>&gt; EDT<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;in /cygdrive/c/users/hqm/openlaszlo/legals3/WEB-INF/lps/lfc<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;for <a href="http://svn.openlaszlo.org/openlaszlo/branches/legals/WEB-INF/">
http://svn.openlaszlo.org/openlaszlo/branches/legals/WEB-INF/</a><br>&gt; lps/lfc<br>&gt;<br>&gt; Summary: fix for text sizing in DHTML<br>&gt;<br>&gt; New Features:<br>&gt;<br>&gt; Bugs Fixed: LPP-4248<br>&gt;<br>&gt; Technical Reviewer: max (pending)
<br>&gt; QA Reviewer: (pending)<br>&gt; Doc Reviewer: (pending)<br>&gt;<br>&gt; Documentation:<br>&gt;<br>&gt; Release Notes:<br>&gt;<br>&gt; Details:<br>&gt;<br>&gt;<br>&gt; Multiline text should not try to resize it&#39;s height automatically
<br>&gt; if there<br>&gt; are<br>&gt; any constraints on it&#39;s height (or if it&#39;s height is set to a<br>&gt; constant)<br>&gt;<br>&gt; Tests:<br>&gt;<br>&gt; test case in bug report<br>&gt;<br>&gt; Files:<br>&gt; M&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;views/LzText.lzs
<br>&gt;<br>&gt;<br>&gt; Changeset: <a href="http://svn.openlaszlo.org/openlaszlo/patches/20070719-">http://svn.openlaszlo.org/openlaszlo/patches/20070719-</a><br>&gt; hqm-6.tar<br>&gt;<br>&gt; --<br>&gt; Henry Minsky<br>
&gt; Software Architect<br>&gt; <a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br></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>