remove DomUtil.getViewportOffset as unnecessary