You need to sign in to do that
Don't have an account?
arasu
How can I disable the inner scrollbars(horizontal and vertical) for the S-Control page.?
Hi,
I am working on an S-Control, but by default it seems to have an inner scroll-bar (excluding the browser scroll bars). How can I disable the inner scrollbars(horizontal and vertical) for the S-Control page.
Appreciate any feedback on this, since the user will have to control 4 scrolbars to navigate the page.
Thanks and regards,
Ambili
you can set the scroll properties in the page layout , by editing properties on that scontrol (from the edit page layout screen)
Salesforce even had to use this workaround in their Salesforce for Google Adwords product. They set the tab height to 6000 pixels for the same reason.
Try voting on this idea of mine. It's gotten no attention, but it's a request to fix the height issue.
Let me know if you can figure out a different way.
The iframe on the parent tab has an ID of "itarget" so you can call that id from your sControl and then resize the frame based upon the resulting size of your sControl. The specific function is below:
Code:
You'll need to call this function only after all the other code you are executing in your sControl is finished.
I use this all the time and it is much cleaner than any other option I've tried in the past.
-greg
Will this work on custom tabs that reference a URL outside the Salesforce.com domain? I believe the answer is no because the browser will not let another domain's script affect the parent page, but I thought I'd check with you to see if you've dealt with that before.
Thanks.
Your S-Control will then not display it's own scrollbars. Of course, the main Salesforce page will likely have a scrollbar, but the S-Control itself should not. Be careful not to make your content too large, or it won't be easily accessible to your users.