D. Sean Kelly

The ultimate goal is to have a Multi-Page Meeting site with one of the tabs containing a document that takes up the entire lower portion of the page. The upper portion contains the nav stuff, tabs, title, etc.

It appears there is default height to web parts if it isn't specified and you cannot specify a percentage (just discreet values).

This is SharePoint Portal 2003.

thanks!

Sean




Re: SharePoint - Design and Customization Web Part Zone Sizing

rick postmus

I used SPS2003 once and I experienced that some webparts have their own height set wich cannot be changed by the webpart configuration. This somehow is hard coded into the webpart and isnt easy to change.

But webpartzones can give a custom height set if im correct. I suggest to use SharePoint Designer and change the webpartzone height. Don't think its that hard but let me know if you have enough info..

Greetz




Re: SharePoint - Design and Customization Web Part Zone Sizing

D. Sean Kelly

Thanks for the reply. I was able to change the size of the zone using FP2003 (can't use Designer) without any problems. However, the size of the web part is still 'fixed' at a specifc height and I can't specify something like 'take up entire zone'

I'm almost to the point of creating my own Web Content Viewer. It's essentially just an <IFRAME> with the some of the parameters set using a toolbox. I'm pretty certain I can do that; but I didn't want to recreate the wheel. Plus, I've got other web parts I need to build.

Sean






Re: SharePoint - Design and Customization Web Part Zone Sizing

rick postmus

Hi Sean,

I dont know wich webpart you are using but I do know that some webparts cant give custom heights. I have the same problem with a calander view. So if you cant find a option to change the height or you cant get the height like you want it to I suggest to make that IFRAME since it aint that hard to make;-)

Greetz




Re: SharePoint - Design and Customization Web Part Zone Sizing

D. Sean Kelly

Rick,

Sorry, I should have put the web part I'm using the in the main message. I'm using the Page Viewer. I've got XML with a ton of XSL and CSS applied to it. Ideally, I would consume the XML within the portal and display the information, but the timeline doesn't make that feasible; so I have to do with what they've already got.

The Page Viewer web part allows you to set the height and width, but it doesn't allow you to tell the Web Part to either expand the zone to the entire length of the content (this I understand because it couldn't know the length until late in the rendering process). I also can't tell the Web Part Zone to take up the rest of the vertical space. It really wants the size to be specified. Oddly enough, however, is that horizontal sizing seems to work fine (make the page wider and the web part expands with the page).

The biggest problem is the content isn't really portal type content and should probably be rendered in a seperate window with the portal page left open. Either that or I'll write a simple custom web part page viewer that expands with the browser window.

Thanks for your input!





Re: SharePoint - Design and Customization Web Part Zone Sizing

rick postmus

Ok I see what your problem is. I think that they hard coded the width element to 100% and the height code is set to like 200 px or something. Somehow im unable to set the height to 100%(there is no way to set a percentage.)

But I think that when you set the height to 100% that it will prolly solves your problem.




Re: SharePoint - Design and Customization Web Part Zone Sizing

D. Sean Kelly

Rick,

Yep, that is what I wanted, but it won't take 100% as a parameter. However, I did find a solution.

http://blogs.tamtam.nl/mart/SharePointPageViewerAutomaticallyAdjustIFrameHeight.aspx

It's similar to this code, but I wanted to resize the iframe relative to the existing window size. They are resizing the window relative to the iframe size. At any rate, it has all the goodies in there for the solution.

Sean





Re: SharePoint - Design and Customization Web Part Zone Sizing

rick postmus

Cool, great job finding this artical

Rick