Source switch on resize

adds support for switchOnResize