Roo/form/DisplayField.js
authoredward <edward@roojs.com>
Thu, 28 Apr 2016 09:58:31 +0000 (17:58 +0800)
committeredward <edward@roojs.com>
Thu, 28 Apr 2016 09:58:31 +0000 (17:58 +0800)
Roo/form/DisplayField.js

index e738d38..6e3b286 100644 (file)
@@ -81,6 +81,10 @@ Roo.extend(Roo.form.DisplayField, Roo.form.TextField,  {
         
         this.viewEl = this.wrap.createChild({ tag: 'div', cls: 'x-form-displayfield'});
         
+        if(this.closable){
+            this.closeEl = this.wrap.createChild({ tag: 'div', cls: 'x-dlg-close'});
+        }
+        
         if (this.bodyStyle) {
             this.viewEl.applyStyles(this.bodyStyle);
         }