> My understanding is that the portlet container determines the size of the > portlets, at least to some extent. > > Now I have some complicated JavaScript stuff which needs to know the size > of > the document in pixels. For the no-portlet implementation I just do > (window.innerWidth || document.body.offsetWidth) to find out. > > But how to find out the width and height for a portlet?
This type of information is entirely dependent on the client. So you will have to use javascript to figure it out. There is nothing within the api, from a java standpoint, that can accurately reflect the size of the rendered content of a portlet. Controllers do "suggest", (in percentages) the width columns, but that is about it. Hth, *================================* | Scott T Weaver | | <[EMAIL PROTECTED]> | | Apache Jetspeed Portal Project | | Apache Pluto Portlet Container | *================================* > -----Original Message----- > From: GROSSJOHANN, Kai [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 13, 2003 11:49 AM > To: '[EMAIL PROTECTED]' > Subject: Find out portlet size in pixels? > > My understanding is that the portlet container determines the size of the > portlets, at least to some extent. > > Now I have some complicated JavaScript stuff which needs to know the size > of > the document in pixels. For the no-portlet implementation I just do > (window.innerWidth || document.body.offsetWidth) to find out. > > But how to find out the width and height for a portlet? > > Kai > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
