From f3abda08b88f7b0f2211c5f19eed955531eac62d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sun, 26 Aug 2012 17:53:53 +0800 Subject: [PATCH] ux/TimePicker.js --- ux/TimePicker.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ux/TimePicker.js b/ux/TimePicker.js index 8160806093..07fb40d861 100644 --- a/ux/TimePicker.js +++ b/ux/TimePicker.js @@ -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); -- 2.39.2