Skip to content

Commit 0739e16

Browse files
committed
test: demo
1 parent 08ed0cb commit 0739e16

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

demo-vue/app/examples/AutoSize.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
<NavigationButton text="Back" android.systemIcon="ic_menu_back" @tap="onNavigationButtonTap"></NavigationButton>
55
</ActionBar>
66
<ScrollView>
7-
<GridLayout width="50" height="100" backgroundColor="red" @tap="resize">
7+
<GridLayout columns="auto" horizontalAlignment="center" height="200" backgroundColor="red" @tap="resize">
88

9-
<HTMLLabel width="100%"
10-
height="50"
9+
<HTMLLabel
10+
verticalAlignment="center"
11+
width="50"
12+
:textWrap="true"
1113
:autoFontSize="true"
12-
:html="'center textAlignment, bottom verticalAlignment'"
13-
minFontSize="10"
14-
lineBreak="end"
14+
text="center textAlignment, bottom verticalAlignment"
15+
fontSize="10"
1516
maxFontSize="30"/>
1617

1718
</GridLayout>

demo-vue/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"description": "NativeScript HTML Label Demo for Vue",
33
"license": "SEE LICENSE IN LICENSE.md",
44
"readme": "README.md",
5+
"main":"app/main",
56
"dependencies": {
67
"@nativescript-community/text": "1.4.8",
78
"@nativescript-community/ui-label": "../plugin",

0 commit comments

Comments
 (0)