Author: adam
Date: 2007-01-23 18:50:07 -0800 (Tue, 23 Jan 2007)
New Revision: 3501
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInput6.as
Log:
Summary: Fix height resizing for multiline text fields
New Features:
Bugs Fixed: N/A
Technical Reviewer: max
QA Reviewer: pablo
Doc Reviewer: n/a
Documentation:
Release Notes:
Details: Multiline inputtext fields don't resize their height as they wrap
while the user is inputting text. There needs to be code to update the view
height when the text changes
Tests: See attached
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInput6.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInput6.as 2007-01-24 02:36:57 UTC
(rev 3500)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInput6.as 2007-01-24 02:50:07 UTC
(rev 3501)
@@ -3,7 +3,7 @@
*****************************************************************************/
//* A_LZ_COPYRIGHT_BEGIN ******************************************************
-//* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+//* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
//* Use is subject to license terms. *
//* A_LZ_COPYRIGHT_END ********************************************************
@@ -114,6 +114,13 @@
//-----------------------------------------------------------------------------
TextField.prototype.__onChanged = function ( ){
//this.__lzview.setText(this.text);
+
+ //multiline resizable fields adjust their height
+ if ( this.__lzview.multiline &&
+ this.__lzview.sizeToHeight &&
+ this.__lzview.height != this._height ) {
+ this.__lzview.setHeight(this._height);
+ }
this.__lzview.ontext.sendEvent( );
}
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins