Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[regression/8.0.0] [iOS] Border appears to be offsetting content incorrectly #15183

Closed
PureWeen opened this issue May 19, 2023 · 2 comments · Fixed by #15856
Closed

[regression/8.0.0] [iOS] Border appears to be offsetting content incorrectly #15183

PureWeen opened this issue May 19, 2023 · 2 comments · Fixed by #15856
Assignees
Labels
area-controls-border Border fixed-in-8.0.0-rc.1.9171 Look for this fix in 8.0.0-rc.1.9171 i/regression This issue described a confirmed regression on a currently supported version platform/iOS 🍎 t/bug Something isn't working
Milestone

Comments

@PureWeen
Copy link
Member

PureWeen commented May 19, 2023

Description

 <Grid>
                <Border StrokeThickness="5" Stroke="Red">
                    <Border.StrokeShape>
                        <RoundRectangle CornerRadius="5" />
                    </Border.StrokeShape>
                    <Grid BackgroundColor="Blue" HeightRequest="40">
                        <Label Text="Control in a Grid" TextColor="White"/>
                    </Grid>
                </Border>
            </Grid>

            <ContentView Background="Green" BackgroundColor="Green">
                <Border StrokeThickness="5" Stroke="Red">
                    <Border.StrokeShape>
                        <RoundRectangle CornerRadius="5" />
                    </Border.StrokeShape>
                    <Grid BackgroundColor="Blue" HeightRequest="40">
                        <Label Text="Control in a ContentView" TextColor="White"/>
                    </Grid>
                </Border>
            </ContentView>

            <!-- Control in a grid is rendered properly -->
            <Grid>
                <Border StrokeThickness="5" Stroke="Red">
                    <Border.StrokeShape>
                        <RoundRectangle CornerRadius="5" />
                    </Border.StrokeShape>
                    <Grid BackgroundColor="Blue" HeightRequest="40">
                        <Label Text="Control in a Grid" TextColor="White"/>
                    </Grid>
                </Border>
            </Grid>

NET7.0

image

NET8.0

image

ANDROID NET8.0

image

@PureWeen PureWeen added t/bug Something isn't working platform/iOS 🍎 i/regression This issue described a confirmed regression on a currently supported version labels May 19, 2023
@PureWeen PureWeen added this to the .NET 8 milestone May 19, 2023
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 19, 2023
@ewerspej
Copy link

ewerspej commented Jun 6, 2023

The StrokeShape of the Border control also has an incorrect behavior when StrokeThickness="0". It creates a gap between the enclosing ContentView or Layout, e.g. a Grid. I need to use StrokeThickness="-0.2" in order to temporarily remedy this. Could be related?

@davidortinau
Copy link
Contributor

I've observed this as well. net8 pre5

Screenshot 2023-06-21 at 3 16 14 PM

@jsuarezruiz jsuarezruiz self-assigned this Jul 5, 2023
@Redth Redth modified the milestones: .NET 8, .NET 8 GA Jul 12, 2023
@samhouts samhouts changed the title [iOS] Border appears to be offsetting content incorrectly [regression/8.0] [iOS] Border appears to be offsetting content incorrectly Aug 1, 2023
@samhouts samhouts added the fixed-in-8.0.0-rc.1.9171 Look for this fix in 8.0.0-rc.1.9171 label Sep 12, 2023
@samhouts samhouts changed the title [regression/8.0] [iOS] Border appears to be offsetting content incorrectly [regression/8.0.0] [iOS] Border appears to be offsetting content incorrectly Sep 18, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 19, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-border Border fixed-in-8.0.0-rc.1.9171 Look for this fix in 8.0.0-rc.1.9171 i/regression This issue described a confirmed regression on a currently supported version platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants