aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_chanview.js
blob: 0bf81ba350c279d0666efb33fdceb9bfaa41959d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function resize_iframe()
{
	if(typeof(window.innerHeight) != 'undefined') {
		var height=window.innerHeight;//Firefox
	}
	else {
		if (typeof(document.body.clientHeight) != 'undefined')
		{
			var height=document.body.clientHeight;//IE
		}
	}

	//resize the iframe according to the size of the
	//window (all these should be on the same line)
	document.getElementById("remote-channel").style.height=parseInt(height-document.getElementById("remote-channel").offsetTop-8)+"px";
}

window.onresize=resize_iframe;