Good evening,
Looking at the code in SimplePortalSample, these lines caught my attention:
As far as I can understand, it means that a portlet width is determined by its container, while its height depends on its conent. Right?
Assuming that, I tried to add some canvas with a fixed height, but it won't work as intented (at least for me :-)).
For example, I simply added this line:
in the onClick method in addPortlet.addClickHandler, resulting in a portlet with a scrollbar, while I was expecting a portlet with increased height.
Any suggestions?
Thank you in advance...
Looking at the code in SimplePortalSample, these lines caught my attention:
Code:
// these settings enable the portlet to autosize its height only // to fit its contents // (since width is determined from the containing layout, not // the portlet contents) setVPolicy(LayoutPolicy.NONE); setOverflow(Overflow.VISIBLE);
Assuming that, I tried to add some canvas with a fixed height, but it won't work as intented (at least for me :-)).
For example, I simply added this line:
Code:
label.setHeight(600);
Any suggestions?
Thank you in advance...
Comment