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.
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.