Never mind I sync;ed and clean build and now it is working properly in the
example.
On 1/25/07, Jim Grandy <[EMAIL PROTECTED]> wrote:
If you are running at r3547 or later, you have Adam's text height change
integrated over from trunk. I'm sure he'd be interested to hear about any
issues you have with this change.
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( );
}
On Jan 25, 2007, at 2:18 PM, Henry Minsky wrote:
http://localhost:8080/legals/examples/components/window_example.lzx?lzr=dhtml&debug=false
If you look at the multiline text in the windows or in the pop up dialog
boxes, it seems truncated after
a couple of lines.
I have also just noticed something with text width in SWF, if you have a
debugger window, the width
of the debugger content area text field is only about 200 pixels, but if I
drag on the debugger window
resize tab, it jumps to the full width of the debug window.
Did something change with text width/height initialization?
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]