1+ <Page xmlns =" http://schemas.nativescript.org/tns.xsd" navigatingTo =" onNavigatingTo" class =" page" >
2+
3+ <Page .actionBar>
4+ <ActionBar title =" My App" icon =" " class =" action-bar" >
5+ </ActionBar >
6+ </Page .actionBar>
7+
8+ <StackLayout >
9+ <StackLayout class =" p-10" row =" 0" >
10+ <Label text =" Default style = scrolls out of container" class =" body m-b-10" />
11+ <ScrollView height =" 40" >
12+ <StackLayout >
13+ <GridLayout width =" 30" height =" 30" backgroundColor =" red" />
14+ <GridLayout width =" 30" height =" 30" backgroundColor =" yellow" />
15+ <GridLayout width =" 30" height =" 30" backgroundColor =" green" />
16+ </StackLayout >
17+ </ScrollView >
18+ </StackLayout >
19+
20+ <StackLayout class =" p-10" row =" 1" >
21+ <Label text =" Adding border changes the height but fixes scrolling" textWrap =" true" class =" body m-b-10" />
22+ <ScrollView class =" bordered" height =" 40" >
23+ <StackLayout >
24+ <GridLayout width =" 30" height =" 30" backgroundColor =" red" />
25+ <GridLayout width =" 30" height =" 30" backgroundColor =" yellow" />
26+ <GridLayout width =" 30" height =" 30" backgroundColor =" green" />
27+ </StackLayout >
28+ </ScrollView >
29+ </StackLayout >
30+
31+ <StackLayout class =" p-10" row =" 2" >
32+ <Label text =" border-radius" class =" body m-b-10" />
33+ <ScrollView class =" bordered fixed-height border-radius" >
34+ <StackLayout >
35+ <GridLayout width =" 30" height =" 30" backgroundColor =" red" />
36+ <GridLayout width =" 30" height =" 30" backgroundColor =" yellow" />
37+ <GridLayout width =" 30" height =" 30" backgroundColor =" green" />
38+ </StackLayout >
39+ </ScrollView >
40+ </StackLayout >
41+
42+ <StackLayout class =" p-10" row =" 2" >
43+ <Label text =" border-radius = weird" class =" body m-b-10" />
44+ <ScrollView class =" bordered fixed-height border-radius-nonuniform" >
45+ <StackLayout >
46+ <GridLayout width =" 30" height =" 30" backgroundColor =" red" />
47+ <GridLayout width =" 30" height =" 30" backgroundColor =" yellow" />
48+ <GridLayout width =" 30" height =" 30" backgroundColor =" green" />
49+ </StackLayout >
50+ </ScrollView >
51+ </StackLayout >
52+
53+ <StackLayout class =" p-10" row =" 3" >
54+ <Label text =" border-width = weird" class =" body m-b-10" />
55+ <ScrollView class =" bordered-nonuniform fixed-height" >
56+ <StackLayout >
57+ <GridLayout width =" 30" height =" 30" backgroundColor =" red" />
58+ <GridLayout width =" 30" height =" 30" backgroundColor =" yellow" />
59+ <GridLayout width =" 30" height =" 30" backgroundColor =" green" />
60+ </StackLayout >
61+ </ScrollView >
62+ </StackLayout >
63+
64+ </StackLayout >
65+ </Page >
0 commit comments