Author: vmolotkov
Date: 2008-08-21 14:12:43 -0400 (Thu, 21 Aug 2008)
New Revision: 10167
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
https://jira.jboss.org/jira/browse/RF-4246
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
===================================================================
---
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-08-21
16:58:22 UTC (rev 10166)
+++
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-08-21
18:12:43 UTC (rev 10167)
@@ -13,7 +13,7 @@
.rich-inplace {
- /*position:relative;*/
+ position:relative;
}
.rich-inplace-changed {
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-08-21
16:58:22 UTC (rev 10166)
+++
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-08-21
18:12:43 UTC (rev 10167)
@@ -37,6 +37,7 @@
this.initEvents();
this["rich:destructor"] = "destroy";
+ this.skipSwitching = false;
},
//TODO: more cleanup here - remove references to DOM elements
@@ -106,11 +107,11 @@
return;
}
var el = (e.srcElement) ? e.srcElement : e.target;
+ this.edit();
if (el.id == this.inplaceInput.id) {
this.skipSwitching = true;
this.tempValueKeeper.focus();
}
- this.edit();
},
edit: function (){
@@ -170,7 +171,7 @@
*/
endEditableState : function() {
- this.inplaceInput.style.position = "";
+ //this.inplaceInput.style.position = "";
if (this.bar) {
this.bar.hide();
}
@@ -186,7 +187,7 @@
if (this.currentState == Richfaces.InplaceInput.STATES[1]) {
return;
}
- this.inplaceInput.style.position = "relative";
+ //this.inplaceInput.style.position = "relative";
this.changeState(Richfaces.InplaceInput.STATES[1]);
var textWidth= this.inplaceInput.offsetWidth;
var inputSize = this.setInputWidth(textWidth);