I am banging my head against the wall here.
What I am trying to do is detect the browser area, and then do a bit of math to get the exact size minus other controls that I want CuteEdit to be.
For example:
<script type=Javascript>
function resizefunction() {
document.getElementById('textarea1').style.height = (document.body.offsetHeight - 40)+"px";
}
</script>
<body onLoad="BLOCKED SCRIPTresizefunction();" onResize="BLOCKED SCRIPTresizefunction();">
$editor->....
</body>
As you can see, I am having no problems getting the browser dimensions, or with setting the style of an object. However, this code refuses to resize CuteEdit and I am going nuts trying to figure this out.
Could someone please help me identify what exactly I am missing or what I am doing wrong ?. I do not want to use the auto-resize feature as it would make the editor roll off the screen for large files.
Thank you.
Custom Software Developent at MicroVB INC