Comments (2)
This is the designed behavior. VerticalStackLayout
doesn't size children, and will take up all the space needed by its children, even going off screen as it does here. Hence there's no constraint. The inner VStack child measures all the labels and says "I need X height" and the ScrollView says to the parent Layout "how much room do I have, should I scroll my children that need X?" and the parent is a VStack that says "I'll give you all the space you need" and so...no scroll. Grid
on the other hand (or other column as you have here) gets its height constraint from the parent Grid
which got it from the Window
, and thus the ScrollView
gets a constraint from which to determine it needs to scroll its children.
Grid > VStack > ScrollView > VStack is inefficient and won't get you the results you want.
Grid > Grid > ScrollView > VStack is still inefficient, but get's the desired result. Do something like that. Optimize by collapsing the Grids into one. I realize this is just a sample.
https://learn.microsoft.com/en-us/dotnet/maui/migration/layouts?view=net-maui-8.0#stacklayout
from maui.
Got it, thanks a lot for explanation. Now I know how VerticalStackLayout thinking :)
from maui.
Related Issues (20)
- MacCatalyst container temporary file will disappear HOT 2
- Consider rounding numbers in `TransformationExtensions`
- Newly installed VS 2022 In combination with Microsoft.Maui.Controls and Microsoft.Maui.Controls.Compativility leads to The type or namespace name 'MauiWinUIApplication' does not exist in the namespace 'Microsoft.Maui' HOT 5
- [MAC OS] SNMP Socket Permission Issues HOT 7
- ImageButton Aspect is incorrect on Windows HOT 1
- Frame + Shadow ignores TapGestureRecognizer HOT 2
- Microsoft.Maui.ApplicationModel.NotImplementedInReferenceAssemblyException
- ImageButton border (BorderWidth) overlaps the image instead of adding space HOT 6
- ImageButton Padding resizes image down unexpectedly even when there is available space HOT 2
- Android.Views.InflateException when trying to migrate a SearchBar custom renderer HOT 3
- [Testing] Remove IgnoreIfPlatforms usage on UITests
- An error occurred trying to accept Android SDK licenses. HOT 3
- [iOS] Label with specified LineHeight gets cut from top HOT 2
- Lottie animations (SKLottieView) do not render inside CollectionView.EmptyView on both iOS and Android HOT 2
- Custom view as FlyoutIcon in Shell HOT 1
- MAUI Toolkit DrawingView works fine in Debug mode but crashes in Release mode (Android) HOT 4
- [Android & iOS]: In ListView with IsPullToRefreshEnabled enabled the PullToRefresh activity indicator remains stuck and doesnt get closed in .net 8 MAUI HOT 8
- NTLM does not always work properly on all platforms with MAUI with SocketsHttpHandler HOT 1
- MauiIcon Color has no effect HOT 5
- Resource not found in .NET 9 when xaml-comp is false HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maui.