Dynamically resizing CuteEditor (javascript) and Firefox

  •  08-01-2007, 6:18 AM

    Dynamically resizing CuteEditor (javascript) and Firefox

    Hi All,
     
    I am dynamically altering the CuteEditor's height in javascript, however the iframe doesn't seem to follow suit in Firefox.
     
    The script looks something like this:
     
    --snip--
    edt.style.width=wid+'px';
    edt.style.height=hei+'px';
    --snip--
     
    Everything works as expected in Internet Explorer, as it seems to render according to the 100% height attribute assigned to the iframe element.  Firefox however does this:
     
     
    Interestingly, if you then switch to HTML the whole editor shrinks to the size of the iframe, which appears to be maintaining it's size from the editor's original size prior to the javascript.
     
    Any ideas for a remedy?
     
    Regards,
     
    Richard.
View Complete Thread