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

Button ContentLayout iOS ignores spacing and aligns to edge of button #8467

Closed
jhunterdfly opened this issue Jul 1, 2022 · 2 comments
Closed
Labels
area-controls-button Button, ImageButton platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@jhunterdfly
Copy link

Description

On iOS (it seems to work on Android)

When I add a button with an icon to a page, I set the Button's ContentLayout to "Right,8".

I'm expecting to see the icon close to the text, but instead the icon is aligned with the Right edge of the button. The same is true for using Left, Top, and Bottom.

In my case, I'm using a FontImageSource to specify the Icon.

Steps to Reproduce

  1. Create a new MAUI Application using project template.
  2. Open MainPage.xaml, and amend the button:
  3. Add ContentLayout of "Right,8"
  4. Add FontImageSource to specify the icon
  5. Run application on iOS, and note that the icon is aligned to right edge.
  6. Increase/Decrease width of button to confirm incorrect alignment

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS Simulators 15.5

Did you find any workaround?

No workarounds found. It seems to work correctly on Android.

Relevant log output

No response

@jhunterdfly jhunterdfly added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jul 1, 2022
@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jul 1, 2022
@jsuarezruiz
Copy link
Contributor

The same as #8528

@jsuarezruiz jsuarezruiz added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jul 5, 2022
@hartez
Copy link
Contributor

hartez commented Feb 3, 2023

This should have been closed when #10309 was merged.

@hartez hartez closed this as completed Feb 3, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Mar 5, 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-button Button, ImageButton platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants