Author: vmolotkov
Date: 2008-02-26 12:09:22 -0500 (Tue, 26 Feb 2008)
New Revision: 6352
Modified:
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
strut width
Modified:
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
---
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-26
17:09:19 UTC (rev 6351)
+++
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-26
17:09:22 UTC (rev 6352)
@@ -176,10 +176,8 @@
var inputSize = this.setInputWidth(textSize);
this.inplaceInput.className = this.classes.COMPONENT.EDITABLE;
+ this.setStrutWidth();
this.tempValueKeeper.show();
- this.strut.style.width = this.tempValueKeeper.offsetWidth + "px";
- this.strut.show();
- this.tempValueKeeper.show();
if (this.bar) {
this.bar.show(inputSize, this.tempValueKeeper.offsetHeight);
@@ -191,6 +189,12 @@
this.tempValueKeeper.focus();
},
+ setStrutWidth : function() {
+ this.tempValueKeeper.show();
+ this.strut.style.width = this.tempValueKeeper.offsetWidth + "px";
+ this.strut.show();
+ },
+
startViewState : function() {
this.changeState(Richfaces.InplaceInput.STATES[0]);
Show replies by date