From 8cef04694c9bac287bef4001ff3542449c9f6d35 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 16 Jul 2018 16:31:25 +0800 Subject: [PATCH] update --- dist/base.js | 2 +- dist/bundle.js | 41 +++++++++++---------- dist/core.js | 19 ++++++---- dist/fineui.js | 41 +++++++++++---------- dist/widget.js | 20 +++++----- src/base/single/editor/editor.js | 2 +- src/core/controller/controller.bubbles.js | 19 ++++++---- src/widget/numberinterval/numberinterval.js | 20 +++++----- 8 files changed, 88 insertions(+), 76 deletions(-) diff --git a/dist/base.js b/dist/base.js index 50beebc49..a5fff69db 100644 --- a/dist/base.js +++ b/dist/base.js @@ -18568,7 +18568,7 @@ BI.Editor = BI.inherit(BI.Single, { } if (!this.disabledError && BI.isKey(errorText)) { BI.Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, { - adjustLength: 2 + adjustTop: 2 }); this._checkToolTip(); return BI.Bubbles.get(this.getName()); diff --git a/dist/bundle.js b/dist/bundle.js index dd2ddfb4a..5696c679b 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -26766,7 +26766,10 @@ BI.BubblesController = BI.inherit(BI.Controller, { var container = opt.container || context; var offsetStyle = opt.offsetStyle || {}; var level = opt.level || "error"; - var adjustLength = opt.adjustLength || 0; + var adjustTop = opt.adjustTop || 0; + var adjustRight = opt.adjustRight || 0; + var adjustLeft = opt.adjustLeft || 0; + var adjustBottom = opt.adjustBottom || 0; if (!this.storeBubbles[name]) { this.storeBubbles[name] = {}; } @@ -26782,9 +26785,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["top"]); var position = this._getTopPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left, top: position.top - adjustLength}); + this.get(name).element.css({left: position.left + adjustLeft, top: position.top - adjustTop}); this.get(name).invisible(); - if (!$.isTopSpaceEnough(context, this.get(name), adjustLength)) { + if (!$.isTopSpaceEnough(context, this.get(name), adjustTop)) { if (!this.storeBubbles[name]["left"]) { this.storeBubbles[name]["left"] = this._createBubble("left", text, level, 30); } @@ -26797,9 +26800,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["left"]); var position = this._getLeftPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left - adjustLength, top: position.top}); + this.get(name).element.css({left: position.left - adjustLeft, top: position.top - adjustTop}); this.get(name).invisible(); - if (!$.isLeftSpaceEnough(context, this.get(name), adjustLength)) { + if (!$.isLeftSpaceEnough(context, this.get(name), adjustLeft)) { if (!this.storeBubbles[name]["right"]) { this.storeBubbles[name]["right"] = this._createBubble("right", text, level, 30); } @@ -26812,9 +26815,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["right"]); var position = this._getRightPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left + adjustLength, top: position.top}); + this.get(name).element.css({left: position.left + adjustRight, top: position.top - adjustTop}); this.get(name).invisible(); - if (!$.isRightSpaceEnough(context, this.get(name), adjustLength)) { + if (!$.isRightSpaceEnough(context, this.get(name), adjustLeft)) { if (!this.storeBubbles[name]["bottom"]) { this.storeBubbles[name]["bottom"] = this._createBubble("bottom", text, level); } @@ -26827,7 +26830,7 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["bottom"]); var position = this._getBottomPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left, top: position.top + adjustLength}); + this.get(name).element.css({left: position.left + adjustLeft, top: position.top + adjustBottom}); this.get(name).invisible(); } } @@ -54374,7 +54377,7 @@ BI.Editor = BI.inherit(BI.Single, { } if (!this.disabledError && BI.isKey(errorText)) { BI.Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, { - adjustLength: 2 + adjustTop: 2 }); this._checkToolTip(); return BI.Bubbles.get(this.getName()); @@ -102145,7 +102148,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { less: 0, less_equal: 1, numTip: "", - adjustLength: 2 + adjustTop: 2 }, _defaultConfig: function () { var conf = BI.NumberInterval.superclass._defaultConfig.apply(this, arguments); @@ -102432,19 +102435,19 @@ BI.NumberInterval = BI.inherit(BI.Single, { case c.typeError: BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.signalError: BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; default : @@ -102481,7 +102484,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { self._checkValidation(); BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); self.fireEvent(BI.NumberInterval.EVENT_ERROR); }); @@ -102495,14 +102498,14 @@ BI.NumberInterval = BI.inherit(BI.Single, { case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); self.fireEvent(BI.NumberInterval.EVENT_ERROR); break; case c.signalError: BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); self.fireEvent(BI.NumberInterval.EVENT_ERROR); break; @@ -102520,19 +102523,19 @@ BI.NumberInterval = BI.inherit(BI.Single, { case c.typeError: BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.signalError: BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; default : diff --git a/dist/core.js b/dist/core.js index ad5c3bd2a..7a5b9e2ec 100644 --- a/dist/core.js +++ b/dist/core.js @@ -26766,7 +26766,10 @@ BI.BubblesController = BI.inherit(BI.Controller, { var container = opt.container || context; var offsetStyle = opt.offsetStyle || {}; var level = opt.level || "error"; - var adjustLength = opt.adjustLength || 0; + var adjustTop = opt.adjustTop || 0; + var adjustRight = opt.adjustRight || 0; + var adjustLeft = opt.adjustLeft || 0; + var adjustBottom = opt.adjustBottom || 0; if (!this.storeBubbles[name]) { this.storeBubbles[name] = {}; } @@ -26782,9 +26785,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["top"]); var position = this._getTopPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left, top: position.top - adjustLength}); + this.get(name).element.css({left: position.left + adjustLeft, top: position.top - adjustTop}); this.get(name).invisible(); - if (!$.isTopSpaceEnough(context, this.get(name), adjustLength)) { + if (!$.isTopSpaceEnough(context, this.get(name), adjustTop)) { if (!this.storeBubbles[name]["left"]) { this.storeBubbles[name]["left"] = this._createBubble("left", text, level, 30); } @@ -26797,9 +26800,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["left"]); var position = this._getLeftPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left - adjustLength, top: position.top}); + this.get(name).element.css({left: position.left - adjustLeft, top: position.top - adjustTop}); this.get(name).invisible(); - if (!$.isLeftSpaceEnough(context, this.get(name), adjustLength)) { + if (!$.isLeftSpaceEnough(context, this.get(name), adjustLeft)) { if (!this.storeBubbles[name]["right"]) { this.storeBubbles[name]["right"] = this._createBubble("right", text, level, 30); } @@ -26812,9 +26815,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["right"]); var position = this._getRightPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left + adjustLength, top: position.top}); + this.get(name).element.css({left: position.left + adjustRight, top: position.top - adjustTop}); this.get(name).invisible(); - if (!$.isRightSpaceEnough(context, this.get(name), adjustLength)) { + if (!$.isRightSpaceEnough(context, this.get(name), adjustLeft)) { if (!this.storeBubbles[name]["bottom"]) { this.storeBubbles[name]["bottom"] = this._createBubble("bottom", text, level); } @@ -26827,7 +26830,7 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["bottom"]); var position = this._getBottomPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left, top: position.top + adjustLength}); + this.get(name).element.css({left: position.left + adjustLeft, top: position.top + adjustBottom}); this.get(name).invisible(); } } diff --git a/dist/fineui.js b/dist/fineui.js index a2e260db8..d586ad7bc 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -27015,7 +27015,10 @@ BI.BubblesController = BI.inherit(BI.Controller, { var container = opt.container || context; var offsetStyle = opt.offsetStyle || {}; var level = opt.level || "error"; - var adjustLength = opt.adjustLength || 0; + var adjustTop = opt.adjustTop || 0; + var adjustRight = opt.adjustRight || 0; + var adjustLeft = opt.adjustLeft || 0; + var adjustBottom = opt.adjustBottom || 0; if (!this.storeBubbles[name]) { this.storeBubbles[name] = {}; } @@ -27031,9 +27034,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["top"]); var position = this._getTopPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left, top: position.top - adjustLength}); + this.get(name).element.css({left: position.left + adjustLeft, top: position.top - adjustTop}); this.get(name).invisible(); - if (!$.isTopSpaceEnough(context, this.get(name), adjustLength)) { + if (!$.isTopSpaceEnough(context, this.get(name), adjustTop)) { if (!this.storeBubbles[name]["left"]) { this.storeBubbles[name]["left"] = this._createBubble("left", text, level, 30); } @@ -27046,9 +27049,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["left"]); var position = this._getLeftPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left - adjustLength, top: position.top}); + this.get(name).element.css({left: position.left - adjustLeft, top: position.top - adjustTop}); this.get(name).invisible(); - if (!$.isLeftSpaceEnough(context, this.get(name), adjustLength)) { + if (!$.isLeftSpaceEnough(context, this.get(name), adjustLeft)) { if (!this.storeBubbles[name]["right"]) { this.storeBubbles[name]["right"] = this._createBubble("right", text, level, 30); } @@ -27061,9 +27064,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["right"]); var position = this._getRightPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left + adjustLength, top: position.top}); + this.get(name).element.css({left: position.left + adjustRight, top: position.top - adjustTop}); this.get(name).invisible(); - if (!$.isRightSpaceEnough(context, this.get(name), adjustLength)) { + if (!$.isRightSpaceEnough(context, this.get(name), adjustLeft)) { if (!this.storeBubbles[name]["bottom"]) { this.storeBubbles[name]["bottom"] = this._createBubble("bottom", text, level); } @@ -27076,7 +27079,7 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["bottom"]); var position = this._getBottomPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left, top: position.top + adjustLength}); + this.get(name).element.css({left: position.left + adjustLeft, top: position.top + adjustBottom}); this.get(name).invisible(); } } @@ -54623,7 +54626,7 @@ BI.Editor = BI.inherit(BI.Single, { } if (!this.disabledError && BI.isKey(errorText)) { BI.Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, { - adjustLength: 2 + adjustTop: 2 }); this._checkToolTip(); return BI.Bubbles.get(this.getName()); @@ -102394,7 +102397,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { less: 0, less_equal: 1, numTip: "", - adjustLength: 2 + adjustTop: 2 }, _defaultConfig: function () { var conf = BI.NumberInterval.superclass._defaultConfig.apply(this, arguments); @@ -102681,19 +102684,19 @@ BI.NumberInterval = BI.inherit(BI.Single, { case c.typeError: BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.signalError: BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; default : @@ -102730,7 +102733,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { self._checkValidation(); BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); self.fireEvent(BI.NumberInterval.EVENT_ERROR); }); @@ -102744,14 +102747,14 @@ BI.NumberInterval = BI.inherit(BI.Single, { case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); self.fireEvent(BI.NumberInterval.EVENT_ERROR); break; case c.signalError: BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); self.fireEvent(BI.NumberInterval.EVENT_ERROR); break; @@ -102769,19 +102772,19 @@ BI.NumberInterval = BI.inherit(BI.Single, { case c.typeError: BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.signalError: BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; default : diff --git a/dist/widget.js b/dist/widget.js index 2cc544e9c..26272dae9 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -14335,7 +14335,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { less: 0, less_equal: 1, numTip: "", - adjustLength: 2 + adjustTop: 2 }, _defaultConfig: function () { var conf = BI.NumberInterval.superclass._defaultConfig.apply(this, arguments); @@ -14622,19 +14622,19 @@ BI.NumberInterval = BI.inherit(BI.Single, { case c.typeError: BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.signalError: BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; default : @@ -14671,7 +14671,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { self._checkValidation(); BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); self.fireEvent(BI.NumberInterval.EVENT_ERROR); }); @@ -14685,14 +14685,14 @@ BI.NumberInterval = BI.inherit(BI.Single, { case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); self.fireEvent(BI.NumberInterval.EVENT_ERROR); break; case c.signalError: BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); self.fireEvent(BI.NumberInterval.EVENT_ERROR); break; @@ -14710,19 +14710,19 @@ BI.NumberInterval = BI.inherit(BI.Single, { case c.typeError: BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.signalError: BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; default : diff --git a/src/base/single/editor/editor.js b/src/base/single/editor/editor.js index 60014a3eb..85d394d67 100644 --- a/src/base/single/editor/editor.js +++ b/src/base/single/editor/editor.js @@ -227,7 +227,7 @@ BI.Editor = BI.inherit(BI.Single, { } if (!this.disabledError && BI.isKey(errorText)) { BI.Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, { - adjustLength: 2 + adjustTop: 2 }); this._checkToolTip(); return BI.Bubbles.get(this.getName()); diff --git a/src/core/controller/controller.bubbles.js b/src/core/controller/controller.bubbles.js index 247acb289..14407a226 100644 --- a/src/core/controller/controller.bubbles.js +++ b/src/core/controller/controller.bubbles.js @@ -112,7 +112,10 @@ BI.BubblesController = BI.inherit(BI.Controller, { var container = opt.container || context; var offsetStyle = opt.offsetStyle || {}; var level = opt.level || "error"; - var adjustLength = opt.adjustLength || 0; + var adjustTop = opt.adjustTop || 0; + var adjustRight = opt.adjustRight || 0; + var adjustLeft = opt.adjustLeft || 0; + var adjustBottom = opt.adjustBottom || 0; if (!this.storeBubbles[name]) { this.storeBubbles[name] = {}; } @@ -128,9 +131,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["top"]); var position = this._getTopPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left, top: position.top - adjustLength}); + this.get(name).element.css({left: position.left + adjustLeft, top: position.top - adjustTop}); this.get(name).invisible(); - if (!$.isTopSpaceEnough(context, this.get(name), adjustLength)) { + if (!$.isTopSpaceEnough(context, this.get(name), adjustTop)) { if (!this.storeBubbles[name]["left"]) { this.storeBubbles[name]["left"] = this._createBubble("left", text, level, 30); } @@ -143,9 +146,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["left"]); var position = this._getLeftPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left - adjustLength, top: position.top}); + this.get(name).element.css({left: position.left - adjustLeft, top: position.top - adjustTop}); this.get(name).invisible(); - if (!$.isLeftSpaceEnough(context, this.get(name), adjustLength)) { + if (!$.isLeftSpaceEnough(context, this.get(name), adjustLeft)) { if (!this.storeBubbles[name]["right"]) { this.storeBubbles[name]["right"] = this._createBubble("right", text, level, 30); } @@ -158,9 +161,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["right"]); var position = this._getRightPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left + adjustLength, top: position.top}); + this.get(name).element.css({left: position.left + adjustRight, top: position.top - adjustTop}); this.get(name).invisible(); - if (!$.isRightSpaceEnough(context, this.get(name), adjustLength)) { + if (!$.isRightSpaceEnough(context, this.get(name), adjustLeft)) { if (!this.storeBubbles[name]["bottom"]) { this.storeBubbles[name]["bottom"] = this._createBubble("bottom", text, level); } @@ -173,7 +176,7 @@ BI.BubblesController = BI.inherit(BI.Controller, { }); this.set(name, this.storeBubbles[name]["bottom"]); var position = this._getBottomPosition(name, context, offsetStyle); - this.get(name).element.css({left: position.left, top: position.top + adjustLength}); + this.get(name).element.css({left: position.left + adjustLeft, top: position.top + adjustBottom}); this.get(name).invisible(); } } diff --git a/src/widget/numberinterval/numberinterval.js b/src/widget/numberinterval/numberinterval.js index 5d8bc287d..b2b425be5 100644 --- a/src/widget/numberinterval/numberinterval.js +++ b/src/widget/numberinterval/numberinterval.js @@ -18,7 +18,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { less: 0, less_equal: 1, numTip: "", - adjustLength: 2 + adjustTop: 2 }, _defaultConfig: function () { var conf = BI.NumberInterval.superclass._defaultConfig.apply(this, arguments); @@ -305,19 +305,19 @@ BI.NumberInterval = BI.inherit(BI.Single, { case c.typeError: BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.signalError: BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; default : @@ -354,7 +354,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { self._checkValidation(); BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); self.fireEvent(BI.NumberInterval.EVENT_ERROR); }); @@ -368,14 +368,14 @@ BI.NumberInterval = BI.inherit(BI.Single, { case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); self.fireEvent(BI.NumberInterval.EVENT_ERROR); break; case c.signalError: BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); self.fireEvent(BI.NumberInterval.EVENT_ERROR); break; @@ -393,19 +393,19 @@ BI.NumberInterval = BI.inherit(BI.Single, { case c.typeError: BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; case c.signalError: BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { offsetStyle: "left", - adjustLength: c.adjustLength + adjustTop: c.adjustTop }); break; default :