Width and height are updated incorrectly after orientationchange event

When orientationchange event occurs, client width and height are sometimes wrong especially for large webpages. Reason is that rendering has not finished. This can result in window scroll div height being set to wrong height after orientation change. Waiting for browser to finish rendering should fix this.