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

Border Margin on IOS Increases Padding #14051

Closed
pschubert777 opened this issue Mar 19, 2023 · 3 comments
Closed

Border Margin on IOS Increases Padding #14051

pschubert777 opened this issue Mar 19, 2023 · 3 comments
Labels
area-controls-border Border platform/iOS 🍎 s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version t/bug Something isn't working
Milestone

Comments

@pschubert777
Copy link

Description

When increasing the margin for a element in IOS, it seems to instead increase the padding.

For example, when increasing the top and bottom margin from 10 to 40, the space within the border increases, but not the space between other elements in the CollectionView.

IOS- Margin 10

Screen Shot 2023-03-18 at 9 34 15 PM

IOS - Margin 40

Screen Shot 2023-03-18 at 9 35 06 PM

However, it works with Android

Screen Shot 2023-03-18 at 7 47 34 PM

Steps to Reproduce

  1. Create a File > New Maui App
  2. Create an Observable collection in the MainPage.xaml.cs
  3. Create a CollectionView and set the ItemSource to the Observable collection in the MainPage.xaml
  4. In the DataTemplate, wrap each list item with a border, set the top and bottom margin equal to 10
  5. Run the IOS emulator
  6. Switch the top and bottom margin to 40

Link to public reproduction project repository

https://github.com/pschubert777/NewMauiTodo

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

IOS 16.2/15.4

Did you find any workaround?

No

Relevant log output

No response

@pschubert777 pschubert777 added the t/bug Something isn't working label Mar 19, 2023
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Mar 20, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Mar 20, 2023
@ghost
Copy link

ghost commented Mar 20, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@jinxinjuan jinxinjuan added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage s/try-latest-version Please try to reproduce the potential issue on the latest public version and removed s/verified Verified / Reproducible Issue ready for Engineering Triage labels Jun 15, 2023
@ghost
Copy link

ghost commented Jun 15, 2023

Hi @pschubert777. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

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.

@jinxinjuan
Copy link

jinxinjuan commented Jun 15, 2023

Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0, Not repro on iOS platform with sample project. NewMauiTodo

@ghost ghost closed this as completed Jun 22, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 22, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-border Border platform/iOS 🍎 s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants