Skip to content

Commit c417249

Browse files
committed
Partially revert changes
1 parent 09731e1 commit c417249

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/AutoSizer/AutoSizer.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ export default class AutoSizer extends React.PureComponent {
133133
const height = this._parentNode.offsetHeight || 0;
134134
const width = this._parentNode.offsetWidth || 0;
135135

136-
const win = this._parentNode.ownerDocument.defaultView;
137-
const style = win.getComputedStyle(this._parentNode) || {};
136+
const style = window.getComputedStyle(this._parentNode) || {};
138137
const paddingLeft = parseInt(style.paddingLeft, 10) || 0;
139138
const paddingRight = parseInt(style.paddingRight, 10) || 0;
140139
const paddingTop = parseInt(style.paddingTop, 10) || 0;

0 commit comments

Comments
 (0)