This project is read-only.

Introduction

The X Units variable controls how a unit is horizontally positioned relative to its parent. By default an object is positioned relative to the left of its parent, where each unit represents 1 pixel.

PixelsFromLeft

The following shows a child ColoredRectangle positioned 50 PixelsFromLeft relative to its parent:

PixelsFromLeftGum.PNG

PixelsFromCenterX

The following shows a child ColoredRectangle positioned 50 PixelsFromCenterX relative to its parent:

PixelsFromCenterXGum.PNG

PixelsFromRight

The following shows a child ColoredRectangle positioned 50 PixelsFromRight relative to its Parent:

PixelsFromRightGum.PNG

PercentageWidth

The following shows a child ColoredRectangle positioned 50 PercentageWidth relative to its Parent. In other words, it will be positioned halfway between the left and right edges of the Parent:

PercentageWidthGum.PNG

Last edited Nov 20, 2015 at 3:06 PM by vchelaru, version 2

Comments

No comments yet.