emit resize event on the surface, when its size has been changed by .setSize