zipz, indeed the jsFiddle doesn't work as it is an extract from a
larger code base, so let me summarize what I'd like to achive:

My framework (http://demo.processpuzzle.com)  features in-place
editing, based on MooEditable, which creates an iframe for the content
text. The length of content is unknown, so the height of the iframe is
initially 0 and then I'm trying to increase the height, while
this.iframe.getScroll().y > 0 . If this.iframe.getScroll().y == 0
means that the height of the iframe is large enough i.e. no scrolling
is needed. I got this implementation strategy from a bunch of articles
about "elastic textarea".

Let me try your suggestion with contentDocument /
contentWindow.document...

On márc. 5, 19:47, zipz <[email protected]> wrote:
> I couldn't get your jsfiddle code to work but you could try this,
> var blaj = this.iframe.contentDocument ||
> this.iframe.contentWindow.document;
> blaj.scrollTo.....
> I think this is the difference between FF/Chrome and IE.
>
> Still don't understand what you are trying to achieve with the while
> loop. To me it looks like busy-waiting which should be avoided.

Reply via email to