feat: apply insets to absolute layout

This commit is contained in:
Vasil Chimev
2018-08-23 14:05:04 +03:00
committed by Martin Yankov
parent 12a9c5181e
commit c02f062457
3 changed files with 21 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
<ActionBar>
<Label text="AbsoluteLayout Examples"></Label>
</ActionBar>
<AbsoluteLayout class="abs">
<Button text="Left: 10, Top: 5" left="10" top="5" backgroundColor="red" />
<Button text="Left: 30, Top: 80" left="30" top="80" backgroundColor="green" />
<Button text="Left: 150, Top: 25" left="150" top="25" backgroundColor="blue" />
<Button text="Left: 70, Top: 150" left="70" top="150" backgroundColor="yellow" />
</AbsoluteLayout>
</Page>

View File

@@ -17,6 +17,10 @@ Page {
background-color: LightGreen;
}
.abs {
background-color: Lavender;
}
.dock {
background-color: HoneyDew;
}