call the resize handler twice