Fixed layeredcanvas resizing events.