if (this.setFocusOnInit) { lz.Focus.setFocus(this); } 20) { if (gh+this.fontsize > this.height){ this.setAttribute("height",(gh+this.fontsize)); } } ]]> if (this.startAdjustHight) this.parent.parent.adjustHeight(); ",">"); return tString; ]]> this.refObj.letterObjectFree(this); this.destroy(); //startAdjustHight is set to true later, cause otherwise update //Events would set the height to //text field default height this.refObj.letterObjectClose(this); var t = new lz.styleableInput(this._textview,{ name:'_textview',text:this.inittext, fontstyle:this.refObj.currentlayerstyle, fontsize:this.refObj.currentlayersize, fgcolor:this.refObj.currentlayerletter }); //if ( this.inittext.length==0 ) this.setAttribute('height',40); if ( this.inittext.length!=0 ) { this.refObj.edittextLetterObject.setAttribute('visible',false); this.refObj.setModus('letter'); } t.startAdjustHight = true; this.callNew(this._textview._textview.getText()); //if ($debug) Debug.write("callNew height-2 "); var h = this.getHeight(); //if ($debug) Debug.write("callNew height-3 ",this); //if ($debug) Debug.write("callNew height-4 ",this.getHeight()); this._textview._textview.destroy(); var t = new lz.styleableInput(this._textview,{ setFocusOnInit:false, name:'_textview',text:txxt, fontstyle:this.refObj.currentlayerstyle, fontsize:this.refObj.currentlayersize, fgcolor:this.refObj.currentlayerletter }); this.setAttribute("height",h); if ($debug) Debug.write("+++ adjustHeight +++"); this.setAttribute('height',this._textview._textview.height+2); this.rs.remove();