From 1327a0cf2145e42f804457c6820eaeeae446597c Mon Sep 17 00:00:00 2001 From: iapyang Date: Wed, 24 Oct 2018 18:38:39 +0800 Subject: [PATCH] BI-34245 --- src/widget/timeinterval/dateinterval.js | 7 +++---- src/widget/timeinterval/timeinterval.js | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/widget/timeinterval/dateinterval.js b/src/widget/timeinterval/dateinterval.js index cca3ab4c4..253c46ade 100644 --- a/src/widget/timeinterval/dateinterval.js +++ b/src/widget/timeinterval/dateinterval.js @@ -6,7 +6,7 @@ BI.DateInterval = BI.inherit(BI.Single, { height: 24, width: 24, lgap: 15, - offset: -15, + offset: 0, timeErrorCls: "time-error", DATE_MIN_VALUE: "1900-01-01", DATE_MAX_VALUE: "2099-12-31" @@ -33,14 +33,13 @@ BI.DateInterval = BI.inherit(BI.Single, { BI.createWidget({ element: self, type: "bi.center", - hgap: 10, height: this.constants.height, items: [{ type: "bi.absolute", items: [{ el: self.left, left: this.constants.offset, - right: 0, + right: this.constants.width / 2, top: 0, bottom: 0 }] @@ -48,7 +47,7 @@ BI.DateInterval = BI.inherit(BI.Single, { type: "bi.absolute", items: [{ el: self.right, - left: 0, + left: this.constants.width / 2, right: this.constants.offset, top: 0, bottom: 0 diff --git a/src/widget/timeinterval/timeinterval.js b/src/widget/timeinterval/timeinterval.js index 794e837f3..45f0b892c 100644 --- a/src/widget/timeinterval/timeinterval.js +++ b/src/widget/timeinterval/timeinterval.js @@ -6,7 +6,7 @@ BI.TimeInterval = BI.inherit(BI.Single, { height: 24, width: 24, lgap: 15, - offset: -15, + offset: 0, timeErrorCls: "time-error", DATE_MIN_VALUE: "1900-01-01", DATE_MAX_VALUE: "2099-12-31" @@ -33,14 +33,13 @@ BI.TimeInterval = BI.inherit(BI.Single, { BI.createWidget({ element: self, type: "bi.center", - hgap: 10, height: this.constants.height, items: [{ type: "bi.absolute", items: [{ el: self.left, left: this.constants.offset, - right: 0, + right: this.constants.width / 2, top: 0, bottom: 0 }] @@ -48,7 +47,7 @@ BI.TimeInterval = BI.inherit(BI.Single, { type: "bi.absolute", items: [{ el: self.right, - left: 0, + left: this.constants.width / 2, right: this.constants.offset, top: 0, bottom: 0