Converted ResizeHandler to anon. inner class