Set popup window height and width dynamically. * If the content is small and context.popup API exists, use it. * Otherwise, use pageDiv, set its height/width to content height/width, but limited to 85%/75% of window height/width. Change-Id: Ibbddf7b7411d44f99bf04f36e5d60136e23ce99c