|
|
@ -448,7 +448,7 @@ |
|
|
|
viewportBounds = document.documentElement.getBoundingClientRect(); |
|
|
|
viewportBounds = document.documentElement.getBoundingClientRect(); |
|
|
|
var left; |
|
|
|
var left; |
|
|
|
if (comboRect.left + comboRect.width / 2 + popupRect.width / 2 > viewportBounds.width) { |
|
|
|
if (comboRect.left + comboRect.width / 2 + popupRect.width / 2 > viewportBounds.width) { |
|
|
|
left = viewportBounds.width - comboRect.width - positionRelativeElementRect.left; |
|
|
|
left = viewportBounds.width - popupRect.width - positionRelativeElementRect.left; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
left = comboRect.left + (comboRect.width - popupRect.width) / 2 - positionRelativeElementRect.left; |
|
|
|
left = comboRect.left + (comboRect.width - popupRect.width) / 2 - positionRelativeElementRect.left; |
|
|
|
} |
|
|
|
} |
|
|
|