maui
maui copied to clipboard
[Android/iOS] Scrollview Direction=Both not working with Label as the content
Description
Setting Orientation=Both in scrollview only works horizontally for android, and doesn't work at all on iOS (see #7933).
<Grid Grid.Row="1">
<Border x:Name="LogsBorder"
Stroke="WhiteSmoke"
StrokeThickness="2">
<Border.StrokeShape>
<RoundRectangle CornerRadius="20" />
</Border.StrokeShape>
<ScrollView Orientation="Both" >
<!-- <Editor x:Name="Logs" -->
<!-- FontSize="13" -->
<!-- IsReadOnly="True" -->
<!-- AutoSize="TextChanges" -->
<!-- HorizontalOptions="Fill" -->
<!-- VerticalOptions="Fill"/> -->
<Label x:Name="Logs"
FontSize="13"
Margin="5,0"
LineBreakMode="WordWrap"/>
</ScrollView>
</Border>
<Button x:Name="Refresh"
Text="Refresh"
VerticalOptions="End"
Margin="0,0,0,15"
HorizontalOptions="Center"
Clicked="OnRefreshClicked"/>
</Grid>
Steps to Reproduce
Steps to Reproduce Clone: https://github.com/roubachof/MetroLog/tree/maui
- Run MetroLogSmaple.Maui on Android.
- Click on the Show Logs button.
- Hit Refresh, till it fills the space.
- Try to scroll vertically
Version with bug
6.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
Android API 31
Did you find any workaround?
Nope
Relevant log output
No response
Still happening in Android in VS 17.3.0 preview 4.0