maui icon indicating copy to clipboard operation
maui copied to clipboard

[Android/iOS] Scrollview Direction=Both not working with Label as the content

Open roubachof opened this issue 2 years ago • 1 comments

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>

image

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

roubachof avatar Jun 13 '22 10:06 roubachof

Still happening in Android in VS 17.3.0 preview 4.0

roubachof avatar Jul 20 '22 13:07 roubachof