"Weaver, Scott" <[EMAIL PROTECTED]> writes: >> 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.
Hm. So if my portlet generates a single HTML element (a div, say), can I then assume that the parent of that element is the right one to ask about the width that I should choose? Hm. What happens if my content is very wide, say? Does the portal add scrollbars or clip (in the sense of CSS's overflow:hidden) the content, or does the misbehaving portlet destroy the whole portal layout? Are there any standards on this? (I'm on page 55 of the portlet standard, maybe I will come to it later ;-) Kai --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
