SuavePirate / Xamarin.Forms.Controls.FloatingActionButton

A custom view to create a FloatingActionButton for both Android and iOS as part of Material Design
MIT License
120 stars 38 forks source link

FAB's size is shrunk when resume the app #31

Open tonholis opened 5 years ago

tonholis commented 5 years ago

Greetings!

I noticed that the first time you access the page containing a FAB it looks normal but when you resume the app it shrinks its size (see screenshots).

This is my (simplified) XAML:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:suave="clr-namespace:SuaveControls.Views;assembly=SuaveControls.FloatingActionButton"
             x:Class="Views.ListPage">

    <Grid Padding="0">
        <ListView></ListView>

        <suave:FloatingActionButton HorizontalOptions="End" VerticalOptions="End" 
                                    Image="ic_camera_alt.png" >
        </suave:FloatingActionButton>
    </Grid>
</ContentPage>

First page access: screenshot_1544623388

After resuming the app: screenshot_1544623398

I ran this test in the simulator with Android 6.0 and 9.0. I'm using the version 2018.1.5 of the plugin with Xamarin.Forms 3.4.0.1008975

VictorMachadoJosviak commented 5 years ago

Same thing happened to me

Kingamattack commented 4 years ago

Any workaround for this?