Questions Tags Users Unanswered

document.body.scrollHeight is not working correctly in IE11

Question is open.
Be the first to answer this question. (1 voice) (5033 views)
We have a frame when we expand it it gives true height but when we collapse it document.body.scrollheight return the largest expanded value of frame and not return back to original frame size. thats why extra space is produced.Plz can any one help me.

function ResizeDealDetail() {

var miLastHeight = document.body.scrollHeight;
if (miLastHeight > 0) {
do {
miLastHeight = document.body.scrollHeight;
parent.$id("FrmDealDetail").style.height = document.body.scrollHeight;
parent.$id("DivFrmDealDetail").style.height = document.body.scrollHeight;
while (miLastHeight != document.body.scrollHeight);
Image of output screen (17 KB)

Your Answer

Limit of files to attach: 3 / Max total size: 1024 KB