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

Boxview corner radius not working in Mac OS and iOS #5572

Closed
Sasikumar3595 opened this issue Mar 25, 2022 · 5 comments
Closed

Boxview corner radius not working in Mac OS and iOS #5572

Sasikumar3595 opened this issue Mar 25, 2022 · 5 comments
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst s/needs-attention Issue has more information and needs another look s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@Sasikumar3595
Copy link

Description

We have created the application with box view and box view corner radius not working on Mac OS and iOS


            Grid customGrid = new Grid();
            BoxView boxView = new BoxView();
            boxView.HeightRequest = 100;
            boxView.WidthRequest = 100;
            boxView.BackgroundColor = Colors.Red;
            boxView.CornerRadius = new Microsoft.Maui.CornerRadius(5);
            customGrid.HorizontalOptions = LayoutOptions.Center;
            customGrid.VerticalOptions = LayoutOptions.Center;
            customGrid.Add(boxView);
            this.Content = customGrid;

Expected output:

Image

Actual output:

Screen Shot 2022-03-25 at 5 42 08 PM

Steps to Reproduce

  1. Create the sample with the above code
  2. Run the sample on Mac OS and iOS
  3. Box view corner radius not working

Version with bug

Preview 14 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

iOS 15

Did you find any workaround?

No

Relevant log output

Not Applicable
@Sasikumar3595 Sasikumar3595 added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Mar 25, 2022
@Redth
Copy link
Member

Redth commented Mar 25, 2022

Can you try using the Border control instead?

@Redth Redth added s/needs-info Issue needs more info from the author s/verified Verified / Reproducible Issue ready for Engineering Triage labels Mar 25, 2022
@ghost
Copy link

ghost commented Mar 25, 2022

Hi @Sasikumar3595. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@Redth Redth modified the milestones: 6.0.300, 6.0.300-servicing Mar 25, 2022
@Sasikumar3595
Copy link
Author

@Redth ,

We are tried with border control, but the border control does not work correctly on resizing (width or height).
Reference: #5464

@jfversluis jfversluis removed the s/needs-verification Indicates that this issue needs initial verification before further triage will happen label Mar 25, 2022
@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Mar 25, 2022
@Redth Redth added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Mar 25, 2022
@samhouts
Copy link
Member

samhouts commented May 12, 2022

The CornerRadius now applies properly on 6.0.400-preview.1.5782, but BackgroundColor does not. See #6592 for that issue. Closing this one, since the original issue is resolved.

@SteveJML
Copy link

Setting the background color sets the whole control to the chosen color ignoring the CornerRadius, setting Color=Red instead of BackGroundColor=Red respects the CornerRadius.

@ghost ghost locked as resolved and limited conversation to collaborators Jun 14, 2022
@Eilon Eilon added area-controls-boxview area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing and removed legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor area-controls-boxview labels May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst s/needs-attention Issue has more information and needs another look s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants