fixed resizing callback by unbind the re-render when resizing