refactor(dom) getCurrentSize