restrict onresize to when we have data