fallback to element width if NaN width given