From c9b6964ba560c7ac305997ffc649b97e1d98f007 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 8 Feb 2021 11:07:06 +0800 Subject: [PATCH] sync --- docs/src/Roo_bootstrap_TimeField.js.html | 29 ++++++++++++++---------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/docs/src/Roo_bootstrap_TimeField.js.html b/docs/src/Roo_bootstrap_TimeField.js.html index a22129a525..43fa72603a 100644 --- a/docs/src/Roo_bootstrap_TimeField.js.html +++ b/docs/src/Roo_bootstrap_TimeField.js.html @@ -334,32 +334,37 @@ cls.pop(); cls.push('left'); } - + //this.picker().setXY(20000,20000); this.picker().addClass(cls.join('-')); var _this = this; Roo.each(cls, function(c){ if(c == 'bottom'){ - _this.picker().alignTo(_this.inputEl(), 't-b'); - + (function() { + // + }).defer(200); + _this.picker().alignTo(_this.inputEl(), "tr-br", [0, 10], false); //_this.picker().setTop(_this.inputEl().getHeight()); return; } if(c == 'top'){ - _this.picker().setTop(0 - _this.picker().getHeight()); - return; - } + _this.picker().alignTo(_this.inputEl(), "br-tr", [0, 10], false); - if(c == 'left'){ - _this.picker().setLeft(_this.inputEl().getLeft() + _this.inputEl().getWidth() - _this.el.getLeft() - _this.picker().getWidth()); + //_this.picker().setTop(0 - _this.picker().getHeight()); return; } - if(c == 'right'){ - _this.picker().setLeft(_this.inputEl().getLeft() - _this.el.getLeft()); - return; + /* + if(c == 'left'){ + _this.picker().setLeft(_this.inputEl().getLeft() + _this.inputEl().getWidth() - _this.el.getLeft() - _this.picker().getWidth()); + return; } - }); + if(c == 'right'){ + _this.picker().setLeft(_this.inputEl().getLeft() - _this.el.getLeft()); + return; + } + */ + }); }, -- 2.39.2