Fixed resize handler when kiwi is wraped inside another document