Skip to content

Commit

Permalink
Update layout.md
Browse files Browse the repository at this point in the history
arbitary -> arbitrary
  • Loading branch information
eltociear authored Feb 24, 2024
1 parent 07eaf6b commit f1e4a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/design/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ Anything that was marked "AndExpand" should go in its own row or column with a s

### ScrollView Changes

The other main difference is that the Xamarin.Forms ScrollView does not behave consistently when stacking. It has some arbitary limits on minimum size which depend partially on its content, and it will compress to allow other items to fit on the screen inside a StackLayout in ways that are inconsistent and sometimes surprising.
The other main difference is that the Xamarin.Forms ScrollView does not behave consistently when stacking. It has some arbitrary limits on minimum size which depend partially on its content, and it will compress to allow other items to fit on the screen inside a StackLayout in ways that are inconsistent and sometimes surprising.

MAUI, on the other hand, simply allows the ScrollView to expand its viewport to the size of its content unless otherwise constrained. This means that inside of a VerticalStackLayout, which can expand infinitely, a ScrollView will simply set the height of its viewport to the height of the contnet; it will not scroll. This can be a little surprising for Forms users. Remember, StackLayouts simply continue in their stacking direction until they run out of content; they do not subdivide their container along that axis. If you want to limit your content to a constrained space in a direction, you should use another control, like a Grid.

Expand Down

0 comments on commit f1e4a08

Please sign in to comment.