Fixed broken calculation of width:
 - Due to changed hiding by display property some width calculation failed. This is now fixed by recalculating the width once the element get visible.