|
|
@ -19714,14 +19714,14 @@ BI.prepares.push(function () { |
|
|
|
return tempValue; |
|
|
|
return tempValue; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
rgba2rgb: function (rgbColour, BGcolor) { |
|
|
|
rgba2rgb: function (rgbColor, bgColor) { |
|
|
|
if (BI.isNull(BGcolor)) { |
|
|
|
if (BI.isNull(bgColor)) { |
|
|
|
BGcolor = 1; |
|
|
|
bgColor = 1; |
|
|
|
} |
|
|
|
} |
|
|
|
if (rgbColour.substr(0, 4) != "rgba") { |
|
|
|
if (rgbColor.substr(0, 4) != "rgba") { |
|
|
|
return ""; |
|
|
|
return ""; |
|
|
|
} |
|
|
|
} |
|
|
|
var rgbValues = rgbColour.match(/\d+(\.\d+)?/g); |
|
|
|
var rgbValues = rgbColor.match(/\d+(\.\d+)?/g); |
|
|
|
if (rgbValues.length < 4) { |
|
|
|
if (rgbValues.length < 4) { |
|
|
|
return ""; |
|
|
|
return ""; |
|
|
|
} |
|
|
|
} |
|
|
@ -19730,9 +19730,9 @@ BI.prepares.push(function () { |
|
|
|
var B = BI.parseFloat(rgbValues[2]); |
|
|
|
var B = BI.parseFloat(rgbValues[2]); |
|
|
|
var A = BI.parseFloat(rgbValues[3]); |
|
|
|
var A = BI.parseFloat(rgbValues[3]); |
|
|
|
|
|
|
|
|
|
|
|
return "rgb(" + Math.floor(255 * (BGcolor * (1 - A )) + R * A) + "," + |
|
|
|
return "rgb(" + Math.floor(255 * (bgColor * (1 - A)) + R * A) + "," + |
|
|
|
Math.floor(255 * (BGcolor * (1 - A )) + G * A) + "," + |
|
|
|
Math.floor(255 * (bgColor * (1 - A)) + G * A) + "," + |
|
|
|
Math.floor(255 * (BGcolor * (1 - A )) + B * A) + ")"; |
|
|
|
Math.floor(255 * (bgColor * (1 - A)) + B * A) + ")"; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -19769,7 +19769,8 @@ BI.prepares.push(function () { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
isRightSpaceEnough: function (combo, popup, extraWidth) { |
|
|
|
isRightSpaceEnough: function (combo, popup, extraWidth) { |
|
|
|
var viewBounds = popup.element.bounds(), windowBounds = BI.Widget._renderEngine.createElement("body").bounds(); |
|
|
|
var viewBounds = popup.element.bounds(), |
|
|
|
|
|
|
|
windowBounds = BI.Widget._renderEngine.createElement("body").bounds(); |
|
|
|
return BI.DOM.getRightPosition(combo, popup, extraWidth).left + viewBounds.width <= windowBounds.width; |
|
|
|
return BI.DOM.getRightPosition(combo, popup, extraWidth).left + viewBounds.width <= windowBounds.width; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -19778,7 +19779,8 @@ BI.prepares.push(function () { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
isBottomSpaceEnough: function (combo, popup, extraHeight) { |
|
|
|
isBottomSpaceEnough: function (combo, popup, extraHeight) { |
|
|
|
var viewBounds = popup.element.bounds(), windowBounds = BI.Widget._renderEngine.createElement("body").bounds(); |
|
|
|
var viewBounds = popup.element.bounds(), |
|
|
|
|
|
|
|
windowBounds = BI.Widget._renderEngine.createElement("body").bounds(); |
|
|
|
return BI.DOM.getBottomPosition(combo, popup, extraHeight).top + viewBounds.height <= windowBounds.height; |
|
|
|
return BI.DOM.getBottomPosition(combo, popup, extraHeight).top + viewBounds.height <= windowBounds.height; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -19793,7 +19795,8 @@ BI.prepares.push(function () { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getLeftAlignPosition: function (combo, popup, extraWidth) { |
|
|
|
getLeftAlignPosition: function (combo, popup, extraWidth) { |
|
|
|
var viewBounds = popup.element.bounds(), windowBounds = BI.Widget._renderEngine.createElement("body").bounds(); |
|
|
|
var viewBounds = popup.element.bounds(), |
|
|
|
|
|
|
|
windowBounds = BI.Widget._renderEngine.createElement("body").bounds(); |
|
|
|
var left = combo.element.offset().left + extraWidth; |
|
|
|
var left = combo.element.offset().left + extraWidth; |
|
|
|
if (left + viewBounds.width > windowBounds.width) { |
|
|
|
if (left + viewBounds.width > windowBounds.width) { |
|
|
|
left = windowBounds.width - viewBounds.width; |
|
|
|
left = windowBounds.width - viewBounds.width; |
|
|
@ -19863,7 +19866,8 @@ BI.prepares.push(function () { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getTopAdaptPosition: function (combo, popup, extraHeight, needAdaptHeight) { |
|
|
|
getTopAdaptPosition: function (combo, popup, extraHeight, needAdaptHeight) { |
|
|
|
var popupBounds = popup.element.bounds(), windowBounds = BI.Widget._renderEngine.createElement("body").bounds(); |
|
|
|
var popupBounds = popup.element.bounds(), |
|
|
|
|
|
|
|
windowBounds = BI.Widget._renderEngine.createElement("body").bounds(); |
|
|
|
if (BI.DOM.isTopSpaceEnough(combo, popup, extraHeight)) { |
|
|
|
if (BI.DOM.isTopSpaceEnough(combo, popup, extraHeight)) { |
|
|
|
return BI.DOM.getTopPosition(combo, popup, extraHeight); |
|
|
|
return BI.DOM.getTopPosition(combo, popup, extraHeight); |
|
|
|
} |
|
|
|
} |
|
|
|