don't call resize function needlessly

did a check to see if resize need to fire.  I was fireing even when
resize wasn't happing in ie7 and ie8 do to unkonw reason.  This check
fiexs the problme.