|
|
|
@ -720,7 +720,7 @@
|
|
|
|
|
* 获取position:fixed相对定位的元素 |
|
|
|
|
*/ |
|
|
|
|
getPositionRelativeContainingBlock: function (element) { |
|
|
|
|
if (['html', 'body', '#document'].indexOf((element.nodeName || '').toLowerCase()) >= 0) { |
|
|
|
|
if (BI.isIE() || ['html', 'body', '#document'].indexOf((element.nodeName || '').toLowerCase()) >= 0) { |
|
|
|
|
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
|
|
|
return element.ownerDocument.body; |
|
|
|
|
} |
|
|
|
|