Scrollheight of a webContainer?

Hi,

how can I figure out the height and the scroll-height of a WebContainer?

For example if the content of a webcontainer is larger as itself.

  • Lars

It’ll be the maximum of top+height of all contained controls minus the minimum of the top of all contained controls.

Dim myMin, myMax as Integer
MyMin = self.height
Dim c as integer = Self.ChildCount
For I as integer = 0 to c-1
  Dim ctl = self.ChildAtIndex(i)
  MyMin = min(myMin, ctl.top)
  MyMax = max(MyMax, ctl.top+ctl.height)
Next I

Dim h as integer = MyMax - MyMin