Fixed: Unable to set padding for TextView

Resolves #2024
This commit is contained in:
Rossen Hristov
2016-04-25 17:05:18 +03:00
parent 198343f0ff
commit 2672752be8
5 changed files with 33 additions and 1 deletions

View File

@ -80,6 +80,8 @@ examples.set("pwrap", "layouts-percent/wrap");
examples.set("modalview", "modal-view/modal-view");
examples.set("nordic", "nordic/nordic");
examples.set("padding", "padding/padding");
examples.set("gestures", "pages/gestures");
examples.set("touch", "pages/touch-event");
examples.set("handlers", "pages/handlers");

View File

@ -0,0 +1,3 @@
TextField, TextView, Button, Label {
padding: 50;
}

View File

@ -0,0 +1,8 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd" >
<StackLayout>
<Label id="label" text="Label" backgroundColor="red"/>
<TextField id="textField" text="TextField" backgroundColor="green"/>
<TextView id="textView" text="TextView" backgroundColor="blue"/>
<Button id="button" text="Button" backgroundColor="yellow"/>
</StackLayout>
</Page>