Skip to content

Commit f7cc893

Browse files
authored
Fixed matching of the markup and the result
1 parent a2e6739 commit f7cc893

File tree

1 file changed

+45
-10
lines changed

1 file changed

+45
-10
lines changed

content/docs/en/elements/components/scroll-view.md

Lines changed: 45 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,50 @@ contributors: [eddyverbruggen,ikoevska]
99
---
1010

1111
```html
12-
<ScrollView orientation="horizontal">
13-
<StackLayout orientation="horizontal">
14-
<Label text="this" />
15-
<Label text="text" />
16-
<Label text="scrolls" />
17-
<Label text="horizontally" />
18-
<Label text="if necessary" />
19-
</StackLayout>
20-
</ScrollView>
12+
<GridLayout rows="auto, *">
13+
<ScrollView row="0" orientation="horizontal">
14+
<StackLayout orientation="horizontal">
15+
<Label text="h1" class="m-10" />
16+
<Label text="h2" class="m-10" />
17+
<Label text="h3" class="m-10" />
18+
<Label text="h4" class="m-10" />
19+
<Label text="h5" class="m-10" />
20+
<Label text="h6" class="m-10" />
21+
<Label text="h7" class="m-10" />
22+
<Label text="h8" class="m-10" />
23+
<Label text="h9" class="m-10" />
24+
<Label text="h10" class="m-10" />
25+
<Label text="h11" class="m-10" />
26+
<Label text="h12" class="m-10" />
27+
</StackLayout>
28+
</ScrollView>
29+
<ScrollView row="1" horizontalAlignment="center">
30+
<StackLayout>
31+
<Label text="v1" class="m-10" />
32+
<Label text="v2" class="m-10" />
33+
<Label text="v3" class="m-10" />
34+
<Label text="v4" class="m-10" />
35+
<Label text="v5" class="m-10" />
36+
<Label text="v6" class="m-10" />
37+
<Label text="v7" class="m-10" />
38+
<Label text="v8" class="m-10" />
39+
<Label text="v9" class="m-10" />
40+
<Label text="v10" class="m-10" />
41+
<Label text="v11" class="m-10" />
42+
<Label text="v12" class="m-10" />
43+
<Label text="v13" class="m-10" />
44+
<Label text="v14" class="m-10" />
45+
<Label text="v15" class="m-10" />
46+
<Label text="v16" class="m-10" />
47+
<Label text="v17" class="m-10" />
48+
<Label text="v18" class="m-10" />
49+
<Label text="v19" class="m-10" />
50+
<Label text="v20" class="m-10" />
51+
<Label text="v21" class="m-10" />
52+
<Label text="v22" class="m-10" />
53+
</StackLayout>
54+
</ScrollView>
55+
</GridLayout>
2156
```
2257

2358
[> screenshots for=ScrollView <]
@@ -39,4 +74,4 @@ contributors: [eddyverbruggen,ikoevska]
3974

4075
| Android | iOS |
4176
|---------|-----|
42-
| [`android.view`](https://developer.android.com/reference/android/view/View.html) | [`UIScrollView`](https://developer.apple.com/documentation/uikit/uiscrollview)
77+
| [`android.view`](https://developer.android.com/reference/android/view/View.html) | [`UIScrollView`](https://developer.apple.com/documentation/uikit/uiscrollview)

0 commit comments

Comments
 (0)