|
|
|
@ -19714,14 +19714,14 @@ BI.prepares.push(function () {
|
|
|
|
|
return tempValue; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
rgba2rgb: function (rgbColour, BGcolor) { |
|
|
|
|
if (BI.isNull(BGcolor)) { |
|
|
|
|
BGcolor = 1; |
|
|
|
|
rgba2rgb: function (rgbColor, bgColor) { |
|
|
|
|
if (BI.isNull(bgColor)) { |
|
|
|
|
bgColor = 1; |
|
|
|
|
} |
|
|
|
|
if (rgbColour.substr(0, 4) != "rgba") { |
|
|
|
|
if (rgbColor.substr(0, 4) != "rgba") { |
|
|
|
|
return ""; |
|
|
|
|
} |
|
|
|
|
var rgbValues = rgbColour.match(/\d+(\.\d+)?/g); |
|
|
|
|
var rgbValues = rgbColor.match(/\d+(\.\d+)?/g); |
|
|
|
|
if (rgbValues.length < 4) { |
|
|
|
|
return ""; |
|
|
|
|
} |
|
|
|
@ -19730,9 +19730,9 @@ BI.prepares.push(function () {
|
|
|
|
|
var B = BI.parseFloat(rgbValues[2]); |
|
|
|
|
var A = BI.parseFloat(rgbValues[3]); |
|
|
|
|
|
|
|
|
|
return "rgb(" + Math.floor(255 * (BGcolor * (1 - A )) + R * A) + "," + |
|
|
|
|
Math.floor(255 * (BGcolor * (1 - A )) + G * A) + "," + |
|
|
|
|
Math.floor(255 * (BGcolor * (1 - A )) + B * 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)) + B * A) + ")"; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -19769,7 +19769,8 @@ BI.prepares.push(function () {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
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; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -19778,7 +19779,8 @@ BI.prepares.push(function () {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
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; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -19793,7 +19795,8 @@ BI.prepares.push(function () {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
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; |
|
|
|
|
if (left + viewBounds.width > windowBounds.width) { |
|
|
|
|
left = windowBounds.width - viewBounds.width; |
|
|
|
@ -19863,7 +19866,8 @@ BI.prepares.push(function () {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
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)) { |
|
|
|
|
return BI.DOM.getTopPosition(combo, popup, extraHeight); |
|
|
|
|
} |
|
|
|
|