Author: abelevich
Date: 2008-02-28 10:54:08 -0500 (Thu, 28 Feb 2008)
New Revision: 6415
Modified:
trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
add openOnEdit to the options, fix facet applying
Modified:
trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
===================================================================
---
trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-02-28
15:15:17 UTC (rev 6414)
+++
trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-02-28
15:54:08 UTC (rev 6415)
@@ -120,10 +120,11 @@
options.addOption("editEvent");
options.addOption("selectOnEdit");
options.addOption("verticalPosition",
component.getAttributes().get("controlsVerticalPosition"));
- options.addOption("horizontalPosition",
component.getAttributes().get("controlsHorizontalPosition"));
+ options.addOption("horizontalPosition",
component.getAttributes().get("controlsHorizontalPosition"));
options.addOption("inputWidth");
- options.addOption("minInputWidth");
- options.addOption("maxInputWidth");
+
options.addOption("inputMinWidth",component.getAttributes().get("minInputWidth"));
+
options.addOption("inputMaxWidth",component.getAttributes().get("maxInputWidth"));
+ options.addOption("openOnEdit");
attributes.append(options.toScript());
return attributes.toString();
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-28
15:15:17 UTC (rev 6414)
+++
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-28
15:54:08 UTC (rev 6415)
@@ -350,7 +350,9 @@
},
positioning : function(inpWidth, inpHeight) {
- this.bsPanel.style.height = inpHeight + "px";
+ if (this.bsPanel) {
+ this.bsPanel.style.height = inpHeight + "px";
+ }
this.bar.style.position = "absolute";
Show replies by date