dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

Fixed Extra Padding on iOS buttons required when image on top or bottom #26018

Open NirmalKumarYuvaraj opened 4 hours ago

NirmalKumarYuvaraj commented 4 hours ago

Issue Details When the image is positioned at the top or bottom with the title, extra padding is added to the left and right sides of the button.

Root Cause When the button content layout is set to 'Top' or 'Bottom,' the button content width is recalculated based on both the title width and the image width.

Description of Change Remove the logic for recalculating the button content width. If the content layout is set to 'Top' or 'Bottom,' calculate the title insets for the button based on the image width.

dotnet-policy-service[bot] commented 4 hours ago

Hey there @NirmalKumarYuvaraj! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

jsuarezruiz commented 3 hours ago

/azp run

azure-pipelines[bot] commented 3 hours ago
Azure Pipelines successfully started running 3 pipeline(s).