Class LayoutPosition
We use a simplified version of CSS positioning.
public class LayoutPosition
- Inheritance
-
LayoutPosition
- Inherited Members
Remarks
We use a simplified version of CSS positioning. See https://www.webkit.org/blog/117/webcore-rendering-iv-absolutefixed-and-relative-positioning
Constructors
LayoutPosition()
public LayoutPosition()
Fields
ABSOLUTE
Absolute positioned objects are positioned relative to the containing block, which is the nearest enclosing ancestor block with a position other than 'static'.
public const int ABSOLUTE = 3
Field Value
FIXED
Fixed positioned objects are positioned relative to the viewport, i.e., the page area of the current page.
public const int FIXED = 4
Field Value
RELATIVE
Relative positioning is exactly like static positioning except that the left, top, right and bottom properties can be used to apply a translation to the object.
public const int RELATIVE = 2
Field Value
Remarks
Relative positioning is exactly like static positioning except that the left, top, right and bottom properties can be used to apply a translation to the object. Relative positioning is literally nothing more than a paint-time translation. As far as layout is concerned, the object is at its original position.
STATIC
Default positioning by normal rules of block and line layout.
public const int STATIC = 1