Author: hqm
Date: 2007-07-19 19:11:06 -0700 (Thu, 19 Jul 2007)
New Revision: 5725
Modified:
openlaszlo/branches/legals/WEB-INF/lps/lfc/views/LzText.lzs
Log:
Change 20070719-hqm-6 by [EMAIL PROTECTED] on 2007-07-19 15:26:44 EDT
in /cygdrive/c/users/hqm/openlaszlo/legals3/WEB-INF/lps/lfc
for http://svn.openlaszlo.org/openlaszlo/branches/legals/WEB-INF/lps/lfc
Summary: fix for text sizing in DHTML
New Features:
Bugs Fixed: LPP-4248
Technical Reviewer: max (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Multiline text should not try to resize it's height automatically if there are
any constraints on it's height (or if it's height is set to a constant)
Tests:
test case in bug report
Modified: openlaszlo/branches/legals/WEB-INF/lps/lfc/views/LzText.lzs
===================================================================
--- openlaszlo/branches/legals/WEB-INF/lps/lfc/views/LzText.lzs 2007-07-20
02:03:13 UTC (rev 5724)
+++ openlaszlo/branches/legals/WEB-INF/lps/lfc/views/LzText.lzs 2007-07-20
02:11:06 UTC (rev 5725)
@@ -233,7 +233,7 @@
// if single line, use font line height
// else get height from flash textobject.textHeight
//
- if (!('height' in args) || (args.height == null)) {
+ if (!this.hassetheight) {
this.sizeToHeight = true;
} else {
this.setHeight(args.height);
@@ -381,7 +381,6 @@
// recalculate height
if (this.sizeToHeight) {
var h = this.sprite.getTextfieldHeight();
- //Debug.write('LzText.setText computed height', h, this.sprite);
if (h > 0) {
this.setHeight(h);
}
@@ -659,7 +658,6 @@
//resizable fields adjust their height
if (this.sizeToHeight) {
var h = this.sprite.getTextfieldHeight();
- //Debug.write('LzText.setText computed height', h, this.sprite);
if (h > 0) {
this.setHeight(h);
}
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins