Tuesday, May 1, 2012

Calculating the scrollbar height of an iFrame (Ext JS 4.x)

See http://www.appfoundation.com/?p=464

The underlying problem was that I needed to drive the scrollbar on an iframe, but it was not entirely clear how to get the height of the scrollbar. I ended up having to derive it, and also found that the actual height is not set until some point after the content is loaded into it. There is an iframe onload event, but the scrollbar height is set at some point after that.

No comments: