F > FScrollPane.getPaneHeight |
![]() ![]() ![]() |
FScrollPane.getPaneHeight
Availability
Flash Player 6.
Usage
myScrollPane
.getPaneHeight()
Parameters
None.
Returns
An integer specifying the height of the scroll pane view.
Description
Method; returns the height of the scroll pane view. You can only use this method to get the height of a scroll pane that was sized with FScrollPane.setSize
. This method works only if the scroll pane was sized with FScrollPane.setSize
, not if you set the size using the _width
and _height
properties.
Example
The following code gets the height and width of the scroll pane display1
and uses the returned values to resize the scroll pane with FScrollPane.setSize.
var h = display1.getPaneHeight(); var w = display1.getPaneWidth(); display1.setSize(w+10, h+10);
See also
FScrollPane.getPaneWidth
, FScrollPane.setSize
![]() ![]() ![]() |