Packageardisia.components.graphicsEditor.layouts
Classpublic class GraphicsEditorLayout
InheritanceGraphicsEditorLayout Inheritance spark.layouts.supportClasses.LayoutBase

Used by the GraphicsEditor class to layout the canvas. Centers the canvas if it is smaller than the viewport and also adds some padding between the viewport and canvas if the canvas overflows out of the viewport.

This class is necessary because the background may need to display an image that indicates transparency, but this image can not scale with the canvas as the canvas is zoomed.



Public Properties
 PropertyDefined By
  padding : Number
The minimum space between the viewport edge and the layoutElement.
GraphicsEditorLayout
Property Detail
paddingproperty
padding:Number

The minimum space between the viewport edge and the layoutElement.

The default value is 20.


Implementation
    public function get padding():Number
    public function set padding(value:Number):void