You need to sign in to do that
Don't have an account?

Embedded Custom SControl - Huge white space
Hello all:
I created a custom sControl and placed it in the opportunity section. This SControl populates all the Opportunity's Account contacts in a drop-down list. Anyways, it's simple and not a lot of HTML to display.
When i add that SControl to the page layout, it adds a lot of white space below the actual SControl and it does not look good at all!
Any thoughts on how i can get rid of that white space?
Thanks for your replies!
Frederic
function resizeframe(cheight)
{
sframe=top.document.getElementById("01N500000000Xhb");
sframe.style.height=cheight+"px";
}
Where '01N500000000Xhb' = id of the s-control, and cheight is a number you pass into the function
thanks I kind of figured out that I would need to throw the number of records retrieved in there but was not sure at one point to call the function. so i tried just throwing in a number and will figure out how to get the number in a minute..but I got this error when just trying to put in a number:
TypeError: sframe has no properties
Here is my code..any ideas?
You just need to change this line to use the SFDC Id of the s-control in your environment: