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

Resize the fleld height of an s-control?
Hi all.
I have an s-control that mimcs the listing of a related object. All well and good. My one hitch right now is that I'd like the iframe that the s-control is shown in to be flexible. I don't want to make the height of the field containing the s-control to be 300px if the result set back is only something like 80px. Is this at all possible? I could calculate something like 20px per table row created to return the right height.
Am I just dreaming on this one? Are we really stuck with scrollbars and fixed height?
Many thanks.
Bryan
I have an s-control that mimcs the listing of a related object. All well and good. My one hitch right now is that I'd like the iframe that the s-control is shown in to be flexible. I don't want to make the height of the field containing the s-control to be 300px if the result set back is only something like 80px. Is this at all possible? I could calculate something like 20px per table row created to return the right height.
Am I just dreaming on this one? Are we really stuck with scrollbars and fixed height?
Many thanks.
Bryan
You can also replace "height + "px"" with "window.scrollHeight" to automatically resize the window to the optimal size (although, you might need to adjust the values for IE or Firefox to get a better resize value).
Thanks!