Add resize function to rigger