From 22d88e4d3a3edb3f677aaf455c8aebed244426d9 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 10 Nov 2017 15:51:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BB=91=E5=9D=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bi/widget.js | 10 +++++----- dist/bundle.js | 10 +++++----- dist/widget.js | 10 +++++----- src/widget/intervalslider/intervalslider.js | 2 +- src/widget/intervalslider/intervalslider.label.js | 2 +- src/widget/singleslider/singleslider.js | 2 +- src/widget/singleslider/singleslider.label.js | 2 +- src/widget/singleslider/singleslider.normal.js | 2 +- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/bi/widget.js b/bi/widget.js index c6a374bdb..827e92566 100644 --- a/bi/widget.js +++ b/bi/widget.js @@ -5800,7 +5800,7 @@ BI.IntervalSlider = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, @@ -6261,7 +6261,7 @@ BI.IntervalSliderLabel = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, @@ -17458,7 +17458,7 @@ BI.SingleSlider = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, @@ -17759,7 +17759,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, @@ -18024,7 +18024,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, diff --git a/dist/bundle.js b/dist/bundle.js index 11a078a20..0e32da68e 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -80815,7 +80815,7 @@ BI.IntervalSlider = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, @@ -81276,7 +81276,7 @@ BI.IntervalSliderLabel = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, @@ -92473,7 +92473,7 @@ BI.SingleSlider = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, @@ -92774,7 +92774,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, @@ -93039,7 +93039,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, diff --git a/dist/widget.js b/dist/widget.js index c6a374bdb..827e92566 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -5800,7 +5800,7 @@ BI.IntervalSlider = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, @@ -6261,7 +6261,7 @@ BI.IntervalSliderLabel = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, @@ -17458,7 +17458,7 @@ BI.SingleSlider = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, @@ -17759,7 +17759,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, @@ -18024,7 +18024,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, diff --git a/src/widget/intervalslider/intervalslider.js b/src/widget/intervalslider/intervalslider.js index 22a86df3c..20a68beb7 100644 --- a/src/widget/intervalslider/intervalslider.js +++ b/src/widget/intervalslider/intervalslider.js @@ -194,7 +194,7 @@ BI.IntervalSlider = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, diff --git a/src/widget/intervalslider/intervalslider.label.js b/src/widget/intervalslider/intervalslider.label.js index 3b14acd59..0737729a5 100644 --- a/src/widget/intervalslider/intervalslider.label.js +++ b/src/widget/intervalslider/intervalslider.label.js @@ -157,7 +157,7 @@ BI.IntervalSliderLabel = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, diff --git a/src/widget/singleslider/singleslider.js b/src/widget/singleslider/singleslider.js index 2a1c18e44..80b0c0e00 100644 --- a/src/widget/singleslider/singleslider.js +++ b/src/widget/singleslider/singleslider.js @@ -188,7 +188,7 @@ BI.SingleSlider = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, diff --git a/src/widget/singleslider/singleslider.label.js b/src/widget/singleslider/singleslider.label.js index 26fed84ed..d963cb794 100644 --- a/src/widget/singleslider/singleslider.label.js +++ b/src/widget/singleslider/singleslider.label.js @@ -169,7 +169,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } }, diff --git a/src/widget/singleslider/singleslider.normal.js b/src/widget/singleslider/singleslider.normal.js index cc7ae0292..26aaced4b 100644 --- a/src/widget/singleslider/singleslider.normal.js +++ b/src/widget/singleslider/singleslider.normal.js @@ -134,7 +134,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Widget, { }); function optimizeSize(s) { - return BI.clamp(s, 0, o.width); + return BI.clamp(s, 0, self._getGrayTrackLength()); } },