A Viewport is a window onto an area of content. A viewport is given space
in which to operate by a View bead. Viewports can control their area which
is specified by the IViewportModel, adding scrollbars or whatever scrolling
mechanism they want.
Implementation public function get contentView():IUIBase
Method Detail
layoutViewportAfterContentLayout
()
method
public function layoutViewportAfterContentLayout():Size
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
This method is invoked after layout is complete. If width and/or height is
sized to content, the viewport should determine that size and set the
content area size appropriately, and display any scrolling controls
before returning the resulting size of the viewport (which means the
area used up by both content area and scrolling controls).
public function layoutViewportBeforeContentLayout(width:Number, height:Number):void
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
Size the content area based on any visible scrolling controls and
the given width and height. If width and/or height is NaN
then that dimension is being sized to content.
Parameters
width:Number
height:Number
setPosition
()
method
public function setPosition(x:Number, y:Number):void