|
|
@ -502,207 +502,208 @@ export function getComboPositionByDirections(combo, popup, extraWidth, extraHeig |
|
|
|
for (i = 0; i < directions.length; i++) { |
|
|
|
for (i = 0; i < directions.length; i++) { |
|
|
|
direct = directions[i]; |
|
|
|
direct = directions[i]; |
|
|
|
switch (direct) { |
|
|
|
switch (direct) { |
|
|
|
case "left": |
|
|
|
case "left": |
|
|
|
leftRight.push(direct); |
|
|
|
leftRight.push(direct); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "right": |
|
|
|
case "right": |
|
|
|
leftRight.push(direct); |
|
|
|
leftRight.push(direct); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "top": |
|
|
|
case "top": |
|
|
|
topBottom.push(direct); |
|
|
|
topBottom.push(direct); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "bottom": |
|
|
|
case "bottom": |
|
|
|
topBottom.push(direct); |
|
|
|
topBottom.push(direct); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "innerLeft": |
|
|
|
case "innerLeft": |
|
|
|
innerLeftRight.push(direct); |
|
|
|
innerLeftRight.push(direct); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "innerRight": |
|
|
|
case "innerRight": |
|
|
|
innerLeftRight.push(direct); |
|
|
|
innerLeftRight.push(direct); |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
for (i = 0; i < directions.length; i++) { |
|
|
|
for (i = 0; i < directions.length; i++) { |
|
|
|
|
|
|
|
let tW, tH; |
|
|
|
direct = directions[i]; |
|
|
|
direct = directions[i]; |
|
|
|
switch (direct) { |
|
|
|
switch (direct) { |
|
|
|
case "left": |
|
|
|
case "left": |
|
|
|
if (!isNeedAdaptHeight) { |
|
|
|
if (!isNeedAdaptHeight) { |
|
|
|
var tW = tbFirst ? extraHeight : extraWidth, tH = tbFirst ? 0 : extraHeight; |
|
|
|
tW = tbFirst ? extraHeight : extraWidth, tH = tbFirst ? 0 : extraHeight; |
|
|
|
if (isLeftSpaceEnough(combo, popup, tW)) { |
|
|
|
if (isLeftSpaceEnough(combo, popup, tW)) { |
|
|
|
left = getLeftPosition(combo, popup, tW, container).left; |
|
|
|
left = getLeftPosition(combo, popup, tW, container).left; |
|
|
|
if (topBottom[0] === "bottom") { |
|
|
|
if (topBottom[0] === "bottom") { |
|
|
|
pos = getTopAlignPosition(combo, popup, tH, needAdaptHeight, container); |
|
|
|
pos = getTopAlignPosition(combo, popup, tH, needAdaptHeight, container); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
pos = getBottomAlignPosition(combo, popup, tH, needAdaptHeight, container); |
|
|
|
pos = getBottomAlignPosition(combo, popup, tH, needAdaptHeight, container); |
|
|
|
} |
|
|
|
|
|
|
|
pos.dir = `left,${pos.dir}`; |
|
|
|
|
|
|
|
if (tbFirst) { |
|
|
|
|
|
|
|
pos.change = "left"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pos.left = left; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return pos; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
pos.dir = `left,${pos.dir}`; |
|
|
|
lrFirst = true; |
|
|
|
if (tbFirst) { |
|
|
|
break; |
|
|
|
pos.change = "left"; |
|
|
|
case "right": |
|
|
|
|
|
|
|
if (!isNeedAdaptHeight) { |
|
|
|
|
|
|
|
var tW = tbFirst ? extraHeight : extraWidth, tH = tbFirst ? extraWidth : extraHeight; |
|
|
|
|
|
|
|
if (isRightSpaceEnough(combo, popup, tW)) { |
|
|
|
|
|
|
|
left = getRightPosition(combo, popup, tW, container).left; |
|
|
|
|
|
|
|
if (topBottom[0] === "bottom") { |
|
|
|
|
|
|
|
pos = getTopAlignPosition(combo, popup, tH, needAdaptHeight, container); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
pos = getBottomAlignPosition(combo, popup, tH, needAdaptHeight, container); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pos.dir = `right,${pos.dir}`; |
|
|
|
|
|
|
|
if (tbFirst) { |
|
|
|
|
|
|
|
pos.change = "right"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pos.left = left; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return pos; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
pos.left = left; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return pos; |
|
|
|
} |
|
|
|
} |
|
|
|
lrFirst = true; |
|
|
|
} |
|
|
|
break; |
|
|
|
lrFirst = true; |
|
|
|
case "top": |
|
|
|
break; |
|
|
|
var tW = lrFirst ? extraHeight : extraWidth, tH = lrFirst ? extraWidth : extraHeight; |
|
|
|
case "right": |
|
|
|
if (isTopSpaceEnough(combo, popup, tH)) { |
|
|
|
if (!isNeedAdaptHeight) { |
|
|
|
top = getTopPosition(combo, popup, tH, container).top; |
|
|
|
tW = tbFirst ? extraHeight : extraWidth, tH = tbFirst ? extraWidth : extraHeight; |
|
|
|
if (leftRight[0] === "right") { |
|
|
|
if (isRightSpaceEnough(combo, popup, tW)) { |
|
|
|
pos = getLeftAlignPosition(combo, popup, tW, container); |
|
|
|
left = getRightPosition(combo, popup, tW, container).left; |
|
|
|
|
|
|
|
if (topBottom[0] === "bottom") { |
|
|
|
|
|
|
|
pos = getTopAlignPosition(combo, popup, tH, needAdaptHeight, container); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
pos = getRightAlignPosition(combo, popup, tW, container); |
|
|
|
pos = getBottomAlignPosition(combo, popup, tH, needAdaptHeight, container); |
|
|
|
} |
|
|
|
} |
|
|
|
pos.dir = `top,${pos.dir}`; |
|
|
|
pos.dir = `right,${pos.dir}`; |
|
|
|
if (lrFirst) { |
|
|
|
if (tbFirst) { |
|
|
|
pos.change = "top"; |
|
|
|
pos.change = "right"; |
|
|
|
} |
|
|
|
} |
|
|
|
pos.top = top; |
|
|
|
pos.left = left; |
|
|
|
|
|
|
|
|
|
|
|
return pos; |
|
|
|
return pos; |
|
|
|
} |
|
|
|
} |
|
|
|
if (needAdaptHeight) { |
|
|
|
} |
|
|
|
isNeedAdaptHeight = true; |
|
|
|
lrFirst = true; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case "top": |
|
|
|
|
|
|
|
tW = lrFirst ? extraHeight : extraWidth, tH = lrFirst ? extraWidth : extraHeight; |
|
|
|
|
|
|
|
if (isTopSpaceEnough(combo, popup, tH)) { |
|
|
|
|
|
|
|
top = getTopPosition(combo, popup, tH, container).top; |
|
|
|
|
|
|
|
if (leftRight[0] === "right") { |
|
|
|
|
|
|
|
pos = getLeftAlignPosition(combo, popup, tW, container); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
pos = getRightAlignPosition(combo, popup, tW, container); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pos.dir = `top,${pos.dir}`; |
|
|
|
|
|
|
|
if (lrFirst) { |
|
|
|
|
|
|
|
pos.change = "top"; |
|
|
|
} |
|
|
|
} |
|
|
|
tbFirst = true; |
|
|
|
pos.top = top; |
|
|
|
break; |
|
|
|
|
|
|
|
case "bottom": |
|
|
|
return pos; |
|
|
|
var tW = lrFirst ? extraHeight : extraWidth, tH = lrFirst ? extraWidth : extraHeight; |
|
|
|
} |
|
|
|
if (isBottomSpaceEnough(combo, popup, tH)) { |
|
|
|
if (needAdaptHeight) { |
|
|
|
top = getBottomPosition(combo, popup, tH, container).top; |
|
|
|
isNeedAdaptHeight = true; |
|
|
|
if (leftRight[0] === "right") { |
|
|
|
} |
|
|
|
pos = getLeftAlignPosition(combo, popup, tW, container); |
|
|
|
tbFirst = true; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case "bottom": |
|
|
|
|
|
|
|
tW = lrFirst ? extraHeight : extraWidth, tH = lrFirst ? extraWidth : extraHeight; |
|
|
|
|
|
|
|
if (isBottomSpaceEnough(combo, popup, tH)) { |
|
|
|
|
|
|
|
top = getBottomPosition(combo, popup, tH, container).top; |
|
|
|
|
|
|
|
if (leftRight[0] === "right") { |
|
|
|
|
|
|
|
pos = getLeftAlignPosition(combo, popup, tW, container); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
pos = getRightAlignPosition(combo, popup, tW, container); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pos.dir = `bottom,${pos.dir}`; |
|
|
|
|
|
|
|
if (lrFirst) { |
|
|
|
|
|
|
|
pos.change = "bottom"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pos.top = top; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return pos; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (needAdaptHeight) { |
|
|
|
|
|
|
|
isNeedAdaptHeight = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
tbFirst = true; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case "innerLeft": |
|
|
|
|
|
|
|
if (!isNeedAdaptHeight) { |
|
|
|
|
|
|
|
tW = tbFirst ? extraHeight : extraWidth, tH = tbFirst ? 0 : extraHeight; |
|
|
|
|
|
|
|
if (isInnerLeftSpaceEnough(combo, popup, tW)) { |
|
|
|
|
|
|
|
left = getInnerLeftPosition(combo, popup, tW).left; |
|
|
|
|
|
|
|
if (topBottom[0] === "bottom") { |
|
|
|
|
|
|
|
pos = getTopAlignPosition(combo, popup, tH, needAdaptHeight); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
pos = getRightAlignPosition(combo, popup, tW, container); |
|
|
|
pos = getBottomAlignPosition(combo, popup, tH, needAdaptHeight); |
|
|
|
} |
|
|
|
} |
|
|
|
pos.dir = `bottom,${pos.dir}`; |
|
|
|
pos.dir = `innerLeft,${pos.dir}`; |
|
|
|
if (lrFirst) { |
|
|
|
if (tbFirst) { |
|
|
|
pos.change = "bottom"; |
|
|
|
pos.change = "innerLeft"; |
|
|
|
} |
|
|
|
} |
|
|
|
pos.top = top; |
|
|
|
pos.left = left; |
|
|
|
|
|
|
|
|
|
|
|
return pos; |
|
|
|
return pos; |
|
|
|
} |
|
|
|
} |
|
|
|
if (needAdaptHeight) { |
|
|
|
} |
|
|
|
isNeedAdaptHeight = true; |
|
|
|
lrFirst = true; |
|
|
|
} |
|
|
|
break; |
|
|
|
tbFirst = true; |
|
|
|
case "innerRight": |
|
|
|
break; |
|
|
|
if (!isNeedAdaptHeight) { |
|
|
|
case "innerLeft": |
|
|
|
tW = tbFirst ? extraHeight : extraWidth, tH = tbFirst ? extraWidth : extraHeight; |
|
|
|
if (!isNeedAdaptHeight) { |
|
|
|
if (isInnerRightSpaceEnough(combo, popup, tW)) { |
|
|
|
var tW = tbFirst ? extraHeight : extraWidth, tH = tbFirst ? 0 : extraHeight; |
|
|
|
left = getInnerRightPosition(combo, popup, tW).left; |
|
|
|
if (isInnerLeftSpaceEnough(combo, popup, tW)) { |
|
|
|
if (topBottom[0] === "bottom") { |
|
|
|
left = getInnerLeftPosition(combo, popup, tW).left; |
|
|
|
pos = getTopAlignPosition(combo, popup, tH, needAdaptHeight); |
|
|
|
if (topBottom[0] === "bottom") { |
|
|
|
} else { |
|
|
|
pos = getTopAlignPosition(combo, popup, tH, needAdaptHeight); |
|
|
|
pos = getBottomAlignPosition(combo, popup, tH, needAdaptHeight); |
|
|
|
} else { |
|
|
|
|
|
|
|
pos = getBottomAlignPosition(combo, popup, tH, needAdaptHeight); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pos.dir = `innerLeft,${pos.dir}`; |
|
|
|
|
|
|
|
if (tbFirst) { |
|
|
|
|
|
|
|
pos.change = "innerLeft"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pos.left = left; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return pos; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
pos.dir = `innerLeft,${pos.dir}`; |
|
|
|
lrFirst = true; |
|
|
|
if (tbFirst) { |
|
|
|
break; |
|
|
|
pos.change = "innerRight"; |
|
|
|
case "innerRight": |
|
|
|
|
|
|
|
if (!isNeedAdaptHeight) { |
|
|
|
|
|
|
|
var tW = tbFirst ? extraHeight : extraWidth, tH = tbFirst ? extraWidth : extraHeight; |
|
|
|
|
|
|
|
if (isInnerRightSpaceEnough(combo, popup, tW)) { |
|
|
|
|
|
|
|
left = getInnerRightPosition(combo, popup, tW).left; |
|
|
|
|
|
|
|
if (topBottom[0] === "bottom") { |
|
|
|
|
|
|
|
pos = getTopAlignPosition(combo, popup, tH, needAdaptHeight); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
pos = getBottomAlignPosition(combo, popup, tH, needAdaptHeight); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pos.dir = `innerLeft,${pos.dir}`; |
|
|
|
|
|
|
|
if (tbFirst) { |
|
|
|
|
|
|
|
pos.change = "innerRight"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pos.left = left; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return pos; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
pos.left = left; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return pos; |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|
default: |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 此处为四个方向放不下时挑空间最大的方向去放置, 也就是说我设置了弹出方向为"bottom,left",
|
|
|
|
// 此处为四个方向放不下时挑空间最大的方向去放置, 也就是说我设置了弹出方向为"bottom,left",
|
|
|
|
// 最后发现实际弹出方向可能是"top,left",那么此时外界获取popup的方向应该是"top,left"
|
|
|
|
// 最后发现实际弹出方向可能是"top,left",那么此时外界获取popup的方向应该是"top,left"
|
|
|
|
switch (directions[0]) { |
|
|
|
switch (directions[0]) { |
|
|
|
case "left": |
|
|
|
case "left": |
|
|
|
case "right": |
|
|
|
case "right": |
|
|
|
if (isRightSpaceLarger(combo)) { |
|
|
|
if (isRightSpaceLarger(combo)) { |
|
|
|
left = getRightAdaptPosition(combo, popup, extraWidth, container).left; |
|
|
|
left = getRightAdaptPosition(combo, popup, extraWidth, container).left; |
|
|
|
firstDir = "right"; |
|
|
|
firstDir = "right"; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
left = getLeftAdaptPosition(combo, popup, extraWidth, container).left; |
|
|
|
left = getLeftAdaptPosition(combo, popup, extraWidth, container).left; |
|
|
|
firstDir = "left"; |
|
|
|
firstDir = "left"; |
|
|
|
} |
|
|
|
} |
|
|
|
if (topBottom[0] === "bottom") { |
|
|
|
if (topBottom[0] === "bottom") { |
|
|
|
pos = getTopAlignPosition(combo, popup, extraHeight, needAdaptHeight); |
|
|
|
pos = getTopAlignPosition(combo, popup, extraHeight, needAdaptHeight); |
|
|
|
pos.left = left; |
|
|
|
|
|
|
|
pos.dir = `${firstDir},${pos.dir}`; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return pos; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pos = getBottomAlignPosition(combo, popup, extraHeight, needAdaptHeight); |
|
|
|
|
|
|
|
pos.left = left; |
|
|
|
pos.left = left; |
|
|
|
pos.dir = `${firstDir},${pos.dir}`; |
|
|
|
pos.dir = `${firstDir},${pos.dir}`; |
|
|
|
|
|
|
|
|
|
|
|
return pos; |
|
|
|
return pos; |
|
|
|
default : |
|
|
|
} |
|
|
|
if (isBottomSpaceLarger(combo)) { |
|
|
|
pos = getBottomAlignPosition(combo, popup, extraHeight, needAdaptHeight); |
|
|
|
top = getBottomAdaptPosition(combo, popup, extraHeight, needAdaptHeight, container).top; |
|
|
|
pos.left = left; |
|
|
|
firstDir = "bottom"; |
|
|
|
pos.dir = `${firstDir},${pos.dir}`; |
|
|
|
} else { |
|
|
|
|
|
|
|
top = getTopAdaptPosition(combo, popup, extraHeight, needAdaptHeight, container).top; |
|
|
|
return pos; |
|
|
|
firstDir = "top"; |
|
|
|
default : |
|
|
|
} |
|
|
|
if (isBottomSpaceLarger(combo)) { |
|
|
|
if (leftRight[0] === "right") { |
|
|
|
top = getBottomAdaptPosition(combo, popup, extraHeight, needAdaptHeight, container).top; |
|
|
|
pos = getLeftAlignPosition(combo, popup, extraWidth, container); |
|
|
|
firstDir = "bottom"; |
|
|
|
pos.top = top; |
|
|
|
} else { |
|
|
|
pos.dir = `${firstDir},${pos.dir}`; |
|
|
|
top = getTopAdaptPosition(combo, popup, extraHeight, needAdaptHeight, container).top; |
|
|
|
|
|
|
|
firstDir = "top"; |
|
|
|
return pos; |
|
|
|
} |
|
|
|
} |
|
|
|
if (leftRight[0] === "right") { |
|
|
|
pos = getRightAlignPosition(combo, popup, extraWidth, container); |
|
|
|
pos = getLeftAlignPosition(combo, popup, extraWidth, container); |
|
|
|
pos.top = top; |
|
|
|
pos.top = top; |
|
|
|
pos.dir = `${firstDir},${pos.dir}`; |
|
|
|
pos.dir = `${firstDir},${pos.dir}`; |
|
|
|
|
|
|
|
|
|
|
|
return pos; |
|
|
|
return pos; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pos = getRightAlignPosition(combo, popup, extraWidth, container); |
|
|
|
|
|
|
|
pos.top = top; |
|
|
|
|
|
|
|
pos.dir = `${firstDir},${pos.dir}`; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return pos; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -715,26 +716,26 @@ export function getComboPosition(combo, popup, extraWidth, extraHeight, needAdap |
|
|
|
popup.resetHeight && popup.resetHeight(maxHeight); |
|
|
|
popup.resetHeight && popup.resetHeight(maxHeight); |
|
|
|
const position = getComboPositionByDirections(combo, popup, extraWidth, extraHeight, needAdaptHeight, directions || ["bottom", "top", "right", "left"], positionRelativeElement); |
|
|
|
const position = getComboPositionByDirections(combo, popup, extraWidth, extraHeight, needAdaptHeight, directions || ["bottom", "top", "right", "left"], positionRelativeElement); |
|
|
|
switch (offsetStyle) { |
|
|
|
switch (offsetStyle) { |
|
|
|
case "center": |
|
|
|
case "center": |
|
|
|
if (position.change) { |
|
|
|
if (position.change) { |
|
|
|
var p = getMiddleAdaptPosition(combo, popup, positionRelativeElement); |
|
|
|
const p = getMiddleAdaptPosition(combo, popup, positionRelativeElement); |
|
|
|
position.top = p.top; |
|
|
|
position.top = p.top; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var p = getCenterAdaptPosition(combo, popup, positionRelativeElement); |
|
|
|
const p = getCenterAdaptPosition(combo, popup, positionRelativeElement); |
|
|
|
position.left = p.left; |
|
|
|
position.left = p.left; |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "middle": |
|
|
|
case "middle": |
|
|
|
if (position.change) { |
|
|
|
if (position.change) { |
|
|
|
var p = getCenterAdaptPosition(combo, popup, positionRelativeElement); |
|
|
|
const p = getCenterAdaptPosition(combo, popup, positionRelativeElement); |
|
|
|
position.left = p.left; |
|
|
|
position.left = p.left; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var p = getMiddleAdaptPosition(combo, popup, positionRelativeElement); |
|
|
|
const p = getMiddleAdaptPosition(combo, popup, positionRelativeElement); |
|
|
|
position.top = p.top; |
|
|
|
position.top = p.top; |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
if (needAdaptHeight === true) { |
|
|
|
if (needAdaptHeight === true) { |
|
|
|
popup.resetHeight && popup.resetHeight(Math.min(viewportBounds.height - position.top - (positionRelativeElement ? positionRelativeElement.getBoundingClientRect().top : 0), maxHeight)); |
|
|
|
popup.resetHeight && popup.resetHeight(Math.min(viewportBounds.height - position.top - (positionRelativeElement ? positionRelativeElement.getBoundingClientRect().top : 0), maxHeight)); |
|
|
|