From 7f1f3b3244442abcce2a739ba976b5d093438367 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 2 Nov 2017 15:36:27 +0800 Subject: [PATCH] =?UTF-8?q?BI-6175=20=E6=BB=91=E5=9D=97=E5=AE=BD=E9=AB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/addons/sliders/js/intervalslider/intervalslider.js | 7 ++++--- src/addons/sliders/js/singleslider/singleslider.js | 2 -- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/addons/sliders/js/intervalslider/intervalslider.js b/src/addons/sliders/js/intervalslider/intervalslider.js index ef6c980ae2..9b781ffa0d 100644 --- a/src/addons/sliders/js/intervalslider/intervalslider.js +++ b/src/addons/sliders/js/intervalslider/intervalslider.js @@ -6,7 +6,6 @@ BI.IntervalSlider = BI.inherit(BI.Widget, { EDITOR_WIDTH: 58, EDITOR_R_GAP: 60, EDITOR_HEIGHT: 30, - HEIGHT: 28, SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH: 30, SLIDER_HEIGHT: 30, @@ -51,7 +50,6 @@ BI.IntervalSlider = BI.inherit(BI.Widget, { cls: "slider-editor-button", errorText: "", allowBlank: false, - height: c.HEIGHT, width: c.EDITOR_WIDTH, validationChecker: function (v) { return self._checkValidation(v); @@ -78,7 +76,6 @@ BI.IntervalSlider = BI.inherit(BI.Widget, { cls: "slider-editor-button", errorText: "", allowBlank: false, - height: c.HEIGHT, width: c.EDITOR_WIDTH, validationChecker: function (v) { return self._checkValidation(v); @@ -122,6 +119,10 @@ BI.IntervalSlider = BI.inherit(BI.Widget, { var significantPercent = BI.parseFloat(percent.toFixed(1)); self._setSliderOnePosition(significantPercent); self.fireEvent(BI.IntervalSlider.EVENT_CHANGE); + ui.helper.removeClass("dragging"); + }, + start: function (e, ui) { + ui.helper.removeClass("dragging").addClass("dragging"); } }); diff --git a/src/addons/sliders/js/singleslider/singleslider.js b/src/addons/sliders/js/singleslider/singleslider.js index e742d4ff92..b27992469a 100644 --- a/src/addons/sliders/js/singleslider/singleslider.js +++ b/src/addons/sliders/js/singleslider/singleslider.js @@ -5,7 +5,6 @@ BI.SingleSlider = BI.inherit(BI.Widget, { _constant: { EDITOR_WIDTH: 90, EDITOR_HEIGHT: 30, - HEIGHT: 28, SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH: 30, SLIDER_HEIGHT: 30, @@ -98,7 +97,6 @@ BI.SingleSlider = BI.inherit(BI.Widget, { type: "bi.sign_editor", cls: "slider-editor-button", errorText: "", - height: c.HEIGHT, width: c.EDITOR_WIDTH - 2, allowBlank: false, validationChecker: function (v) {