Closed AirMike closed 6 years ago
I think there is a typo which leads to wrong itCanBeRenderedInBottom prediction (v2 branch)
var itCanBeRenderedInBottom = position.y + MaterialWalkthrough._contentWrapper.offsetHeight + MaterialWalkthrough._contentWrapper.offsetHeight < window.innerHeight;
There are two MaterialWalkthrough._contentWrapper.offsetHeight where one of them should be MaterialWalkthrough._wrapper.offsetHeight.
That's right! I'll gonna fix it now.
Thanks @AirMike.
I think there is a typo which leads to wrong itCanBeRenderedInBottom prediction (v2 branch)
var itCanBeRenderedInBottom = position.y + MaterialWalkthrough._contentWrapper.offsetHeight + MaterialWalkthrough._contentWrapper.offsetHeight < window.innerHeight;
There are two MaterialWalkthrough._contentWrapper.offsetHeight where one of them should be MaterialWalkthrough._wrapper.offsetHeight.