fix in resizer: use document.body if offsetParent is undefined