|
|
|
@ -28751,6 +28751,19 @@ BI.Combo = BI.inherit(BI.Widget, {
|
|
|
|
|
e.stopPropagation(); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
var enterPopup = false; |
|
|
|
|
|
|
|
|
|
function hide() { |
|
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid() && o.toggle === true) { |
|
|
|
|
self._hideView(); |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, "", self.combo); |
|
|
|
|
self.fireEvent(BI.Combo.EVENT_COLLAPSE); |
|
|
|
|
} |
|
|
|
|
self.popupView && self.popupView.element.off("mouseenter." + self.getName()).off("mouseleave." + self.getName()); |
|
|
|
|
enterPopup = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
BI.each(evs, function (i, ev) { |
|
|
|
|
switch (ev) { |
|
|
|
|
case "hover": |
|
|
|
@ -28762,11 +28775,18 @@ BI.Combo = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
self.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid() && o.toggle === true) { |
|
|
|
|
self._hideView(); |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, "", self.combo); |
|
|
|
|
self.fireEvent(BI.Combo.EVENT_COLLAPSE); |
|
|
|
|
} |
|
|
|
|
self.popupView.element.on("mouseenter." + self.getName(), function (e) { |
|
|
|
|
enterPopup = true; |
|
|
|
|
self.popupView.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
|
hide(); |
|
|
|
|
}); |
|
|
|
|
self.popupView.element.off("mouseenter." + self.getName()); |
|
|
|
|
}); |
|
|
|
|
BI.defer(function () { |
|
|
|
|
if (!enterPopup) { |
|
|
|
|
hide(); |
|
|
|
|
} |
|
|
|
|
}, 50); |
|
|
|
|
}); |
|
|
|
|
break; |
|
|
|
|
case "click": |
|
|
|
@ -28812,11 +28832,18 @@ BI.Combo = BI.inherit(BI.Widget, {
|
|
|
|
|
st(e); |
|
|
|
|
}); |
|
|
|
|
self.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid() && o.toggle === true) { |
|
|
|
|
self._hideView(); |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, "", self.combo); |
|
|
|
|
self.fireEvent(BI.Combo.EVENT_COLLAPSE); |
|
|
|
|
} |
|
|
|
|
self.popupView.element.on("mouseenter." + self.getName(), function (e) { |
|
|
|
|
enterPopup = true; |
|
|
|
|
self.popupView.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
|
hide(); |
|
|
|
|
}); |
|
|
|
|
self.popupView.element.off("mouseenter." + self.getName()); |
|
|
|
|
}); |
|
|
|
|
BI.defer(function () { |
|
|
|
|
if (!enterPopup) { |
|
|
|
|
hide(); |
|
|
|
|
} |
|
|
|
|
}, 50); |
|
|
|
|
}); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
@ -67628,6 +67655,8 @@ BI.IconCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.combo", |
|
|
|
|
element: this, |
|
|
|
|
direction: o.direction, |
|
|
|
|
trigger: o.trigger, |
|
|
|
|
container: o.container, |
|
|
|
|
adjustLength: o.adjustLength, |
|
|
|
|
adjustXOffset: o.adjustXOffset, |
|
|
|
|
adjustYOffset: o.adjustYOffset, |
|
|
|
@ -80817,7 +80846,7 @@ BI.IntervalSlider = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
function optimizeSize(s) { |
|
|
|
|
return BI.clamp(s, 0, o.width); |
|
|
|
|
return BI.clamp(s, 0, self._getGrayTrackLength()); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -81278,7 +81307,7 @@ BI.IntervalSliderLabel = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
function optimizeSize(s) { |
|
|
|
|
return BI.clamp(s, 0, o.width); |
|
|
|
|
return BI.clamp(s, 0, self._getGrayTrackLength()); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -92475,7 +92504,7 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
function optimizeSize(s) { |
|
|
|
|
return BI.clamp(s, 0, o.width); |
|
|
|
|
return BI.clamp(s, 0, self._getGrayTrackLength()); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -92776,7 +92805,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
function optimizeSize(s) { |
|
|
|
|
return BI.clamp(s, 0, o.width); |
|
|
|
|
return BI.clamp(s, 0, self._getGrayTrackLength()); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -93041,7 +93070,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
function optimizeSize(s) { |
|
|
|
|
return BI.clamp(s, 0, o.width); |
|
|
|
|
return BI.clamp(s, 0, self._getGrayTrackLength()); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|