Author: vmolotkov
Date: 2008-03-05 07:52:53 -0500 (Wed, 05 Mar 2008)
New Revision: 6560
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
strut width was corrected
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
---
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-03-05
12:47:23 UTC (rev 6559)
+++
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-03-05
12:52:53 UTC (rev 6560)
@@ -185,7 +185,7 @@
this.tabber.hide();
this.inplaceInput.className = this.classes.COMPONENT.EDITABLE;
- this.setStrutWidth();
+ this.setStrutWidth(textSize);
this.tempValueKeeper.show();
if (this.bar) {
@@ -198,9 +198,9 @@
this.tempValueKeeper.focus();
},
- setStrutWidth : function() {
+ setStrutWidth : function(textSize) {
this.tempValueKeeper.show();
- this.strut.style.width = this.tempValueKeeper.offsetWidth + "px";
+ this.strut.style.width = textSize + "px";
this.strut.show();
},
Show replies by date