File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export default class extends Component {
147147 const { scrollParent} = this ;
148148 const { axis} = this . props ;
149149 return scrollParent === window ?
150- document . body [ SCROLL_SIZE_KEYS [ axis ] ] :
150+ Math . max ( document . body [ SCROLL_SIZE_KEYS [ axis ] ] , document . documentElement [ SCROLL_SIZE_KEYS [ axis ] ] ) :
151151 scrollParent [ SCROLL_SIZE_KEYS [ axis ] ] ;
152152 }
153153
Original file line number Diff line number Diff line change 228228 var scrollParent = this . scrollParent ;
229229 var axis = this . props . axis ;
230230
231- return scrollParent === window ? document . body [ SCROLL_SIZE_KEYS [ axis ] ] : scrollParent [ SCROLL_SIZE_KEYS [ axis ] ] ;
231+ return scrollParent === window ? Math . max ( document . body [ SCROLL_SIZE_KEYS [ axis ] ] , document . documentElement [ SCROLL_SIZE_KEYS [ axis ] ] ) : scrollParent [ SCROLL_SIZE_KEYS [ axis ] ] ;
232232 }
233233 } , {
234234 key : 'hasDeterminateSize' ,
You can’t perform that action at this time.
0 commit comments