SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to create a web part that a user can add to a page and it will display a website in the entire viewing area. My web part wraps a page viewer web part, and it seems that I need to be able to resize the zone that it is in to be 100% height of the screen for this to work. That's what I hope anyway...

Is there a simple way to access the web part's parent zone within the object model?

share|improve this question
up vote 1 down vote accepted

I see two options:

  1. Set a static height to your web part.
  2. Use jQuery in your web part to set the height of the parent container:
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.