Fix incorrect 'this' reference in _onResize