Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Scrollable portlet
hho
Hi All,
How to make a portlet scollable? I set scroll attribute in the portlet content tag to be true. But the portlet is not scrollable, so the content of the portlet is cut off if the defined height for the portlet is not heigh enough.
I don't know if I miss anything. Please advise.
Thanks in advance
Find more posts tagged with
Comments
bhanley
Sorry for the delay. Let me look into this. I will get an update out soon.
hho
Hi All,
I figured it out. The value of scroll is not read from the content tag. It's alway set as false in the initializeContent function. I made change to that function now everything is working fine for me.
The change is in portal.js file start from line 104
Here is the change for the initializeContent function.
initializeContent: function(options) {
this.content = Object.extend({
urlType: "content",
autoRefresh: "0",
Scroll: "content"
}, options);
this.content.allowScroll = this.content.scroll;
if (this.content.urlType == "shared")
this.content.url = PortalConfig.projectPath + "../shared/" + this.content.url;
else if (this.content.urlType == "root")
this.content.url = PortalConfig.contextPath + this.content.url;
else if (this.content.urlType == "absolute")
this.content.url = this.content.url + "";
else
this.content.url = PortalConfig.contentPath + this.content.url;
this.content.currentUrl = this.content.url;
},
I also uploaded the portal.js in the zip file
bhanley
Thanks for sharing the fix!