From d4b20f5793333e5c24afbb5e365df9f00f524811 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Thu, 15 Feb 2018 06:12:21 -0800 Subject: [PATCH] Documentation for absolute/relative layout Summary: Documentation for absolute/relative layout Reviewed By: emilsjolander Differential Revision: D6998594 fbshipit-source-id: 25dacbb87e067ab8abd555fd24611776b0332047 --- website/contents/properties/absolute-layout.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/website/contents/properties/absolute-layout.md b/website/contents/properties/absolute-layout.md index 0e07e953..f9ea6435 100644 --- a/website/contents/properties/absolute-layout.md +++ b/website/contents/properties/absolute-layout.md @@ -1,11 +1,23 @@ --- -path: "docs/absolute-layout" -title: "Absolute Layout" +path: "docs/absolute-relative-layout" +title: "Absolute/Relative Layout" hasPlayground: true --- +## Absolute/Relative Layout -## Absolute Layout +### Relative Layout + +The element is positioned according to the normal flow of the view, and then offset relative to itself based on the values of `top`, `right`, `bottom`, and `left`. The offset does not affect the position of any other elements. Try out relative layout by changing the `positionType` of any child view and try to add offset to it. + +### Absolute Layout + +The element doesn't take part in the normal flow. It is laid out independent of its siblings. The position is determined based on the `top`, `right`, `bottom` and `left` values. Try this out in playground. + + +#### Position Type +#### Position +