Add resizing function from CSDForm