From f51f66b8d41d628d86cde1de24dc1ccf572c5fec Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sun, 26 Aug 2012 17:56:33 +0800 Subject: [PATCH] ux/TimePicker.js --- ux/TimePicker.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ux/TimePicker.js b/ux/TimePicker.js index ed44226000..726a0d5f6e 100644 --- a/ux/TimePicker.js +++ b/ux/TimePicker.js @@ -24,6 +24,8 @@ Roo.ux.TimePicker = function(config){ Roo.extend(Roo.ux.TimePicker , Roo.form.DisplayField , { paper : false, + width: 350, + height: 350, onRender : function(ct, position){ @@ -40,13 +42,14 @@ Roo.extend(Roo.ux.TimePicker , Roo.form.DisplayField , { } //this.viewEl.setStyle('padding', '2px'); - + this.viewEl.setHeight(this.height); + this.viewEl.setWidth(this.width); // let's create a pie chart... - this.paper = Raphael(this.viewEl.dom); - var sz = ge.getSize(); - paper.setSize(sz.width,sz.height); + var paper = this.paper = Raphael(this.viewEl.dom); + + paper.setSize(this.width,this.height); var data = []; var colors = []; @@ -57,8 +60,9 @@ Roo.extend(Roo.ux.TimePicker , Roo.form.DisplayField , { data.push(open * 4); - colors.push('#003'); + // colours should be configurable... + colors.push('#003'); var clr = [ '#003' , '#FCC' , '#Fee', '#FCC']; var times = [ '' ]; -- 2.39.2