Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] IsClippedToBounds="True" iOS not work #11120

Closed
azapatac opened this issue Jun 18, 2020 · 2 comments
Closed

[Bug] IsClippedToBounds="True" iOS not work #11120

azapatac opened this issue Jun 18, 2020 · 2 comments
Assignees
Labels
a/frame e/2 🕑 2 i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often i/regression in-progress This issue has an associated pull request that may resolve it! p/iOS 🍎 t/bug 🐛

Comments

@azapatac
Copy link

azapatac commented Jun 18, 2020

Description
IsClippedToBounds="True" does not work in iOS

Steps to Reproduce

  1. Create Page
  2. Add frame with corner radius = 10
  3. Add Grid wit 2 rows
  4. In row = 1, add 2 buttons with corner radius = 0

Expected Behavior
No crashes

Actual Behavior
Crashes

Basic Information

  • Version with issue: 4.7.0.968
  • Last known good version: 4.6.0.800
  • IDE: Visual Studio Mac
  • Platform Target Frameworks:
    • iOS: Xamarin.iOS Version: 13.18.1.31

`
<popup:PopupPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="App.ConfirmationDialog"
xmlns:popup="clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup">

<Frame
    IsClippedToBounds="True">

    <Frame.Resources>
        <ResourceDictionary>
            <Style
                TargetType="Frame">
                <Setter Property="BackgroundColor" Value="WhiteSmoke"/>
                <Setter Property="CornerRadius" Value="10"/>
                <Setter Property="HasShadow" Value="False"/>
                <Setter Property="HorizontalOptions" Value="FillAndExpand"/>
                <Setter Property="Margin" Value="40"/>
                <Setter Property="Padding" Value="20"/>
                <Setter Property="VerticalOptions" Value="Center"/>
            </Style>  
        </ResourceDictionary>
    </Frame.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        
        <Label
            FontFamily="{StaticResource TradeGothicLTBold}"
            FontSize="Subtitle"
            HorizontalOptions="Center"
            HorizontalTextAlignment="Center"
            Text="..."
            VerticalOptions="Center"/>

        <Grid
            Grid.Row="1"
            ColumnSpacing="0"
            Padding="-20, 20, -20, -20">
        
            <Grid.RowDefinitions>
                <RowDefinition Height="50"/>
            </Grid.RowDefinitions>

            <Button
                BackgroundColor="{StaticResource MainBlue}"
                CornerRadius="0"
                Grid.Column="1"
                Text="YES"/>

            <Button                   
                BackgroundColor="{StaticResource GrayColor}"
                CornerRadius="0"
                Text="NO"/>

        </Grid>
    </Grid>
</Frame>

</popup:PopupPage>
`

Screenshots

Failed
image

OK
image

@azapatac azapatac added s/unverified New report that has yet to be verified t/bug 🐛 labels Jun 18, 2020
@CarrotSolutions
Copy link

Confirmed! So glad someone else experienced the same thing! I also confirmed no problem on Android just in iOs. So is the workaround to roll back?

@jsuarezruiz jsuarezruiz added a/frame i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often p/iOS 🍎 e/2 🕑 2 and removed s/unverified New report that has yet to be verified labels Jun 19, 2020
@jsuarezruiz jsuarezruiz self-assigned this Jun 19, 2020
@StephaneDelcroix
Copy link
Member

Duplicate of #11091

@StephaneDelcroix StephaneDelcroix marked this as a duplicate of #11091 Jun 19, 2020
@samhouts samhouts added the in-progress This issue has an associated pull request that may resolve it! label Jun 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/frame e/2 🕑 2 i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often i/regression in-progress This issue has an associated pull request that may resolve it! p/iOS 🍎 t/bug 🐛
Projects
None yet
Development

No branches or pull requests

5 participants