ux/TimePicker.js
authorAlan Knowles <alan@roojs.com>
Sun, 26 Aug 2012 09:53:53 +0000 (17:53 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 26 Aug 2012 09:53:53 +0000 (17:53 +0800)
ux/TimePicker.js

index 8160806..07fb40d 100644 (file)
@@ -23,6 +23,25 @@ Roo.ux.TimePicker = function(config){
 
 Roo.extend(Roo.ux.TimePicker , Roo.form.DisplayField ,  {
     
+    
+    onRender : function(ct, position){
+        
+        Roo.form.DisplayField.superclass.onRender.call(this, ct, position);
+        //if(this.inputValue !== undefined){
+        this.wrap = this.el.wrap();
+        
+        this.viewEl = this.wrap.createChild({ tag: 'div', cls: 'x-form-displayfield'});
+        
+        
+        //?? needed??
+        if (this.bodyStyle) {
+            this.viewEl.applyStyles(this.bodyStyle);
+        }
+        //this.viewEl.setStyle('padding', '2px');
+        
+        this.setValue(this.value);
+        
+    
     // let's create a pie chart...
         var ge = Roo.select('.pb-book-time',true).first();
         var paper = Raphael(ge.dom);