We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

SfEffectsView does not resize when its content's size changes

Hello,

I wanted to use SfEffectsView for a custom Button contorl in a MAUI app and have bumped into an issue that SfEffectsView does not resize when its content (f.e. a Label) changes its size.

Here is a simple page where the described issue can be seen:


<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:core="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core"
             x:Class="SfEffectsViewNotResizing.MainPage">
    <ScrollView>
        <VerticalStackLayout
            Spacing="25"
            Padding="30,0"
            VerticalOptions="Center">
           <Button
                x:Name="CounterBtn"
                Text="More text!"
                Clicked="OnCounterClicked"
                HorizontalOptions="Center" />

           <core:SfEffectsView x:Name="_effectsView" HeightRequest="36" HorizontalOptions="Center" TouchDownEffects="Ripple" RippleAnimationDuration="200"
                           RippleBackground="{DynamicResource GrayColor}" BackgroundColor="AliceBlue">

            <Label x:Name="_label" Margin="10,0" TextColor="Red" HorizontalOptions="Center"
                     LineBreakMode="TailTruncation" VerticalOptions="Center"
                     Text="Starting Text " />
           </core:SfEffectsView>
      </VerticalStackLayout>
    </ScrollView>
</ContentPage>


Also in CodeBehind:

private void OnCounterClicked(object sender, EventArgs e)
   {
      _label.Text += "A";
   }

Please, find the full sample attached.

The issue occurs on all 3 platforms: Andorid, iOS and Windows: label is truncated instead of EffectsView being stretched.




Best regards,

Maiia Kuzmishyna


Attachment: SfEffectsViewNotResizing_3bac1cc6.zip

3 Replies 1 reply marked as answer

VV Vijayakumar Viswanathan Syncfusion Team December 19, 2022 03:15 PM UTC

Hi Maiia,

 

Currently, we are validating the reported query and we will let you know the details on or before December 21, 2022. We appreciate your patience until then.

 

Regards

Vijayakumar V



VV Vijayakumar Viswanathan Syncfusion Team December 20, 2022 02:33 PM UTC

Hi Maiia,

The reported issue was a known issue that we have already fixed. The fix will be available in our upcoming weekly release immediately after our volume 4 2022 main release.


Marked as answer

VV Vijayakumar Viswanathan Syncfusion Team December 28, 2022 04:00 PM UTC

Hi Maiia,

Thanks for your patience. 

We have included the fix in our latest Weekly NuGet release 20.4.40 which is available for download (  https://www.nuget.org/ ). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.


Loader.
Live Chat Icon For mobile
Up arrow icon