Skip to content

RadioButton adds extra padding #2450

Closed
Closed

Description

@jeromelaban

Current behavior

RadioButton adds extra padding.

Expected behavior

No padding

How to reproduce it (as minimally and precisely as possible)

https://dev.azure.com/nventive/Umbrella/_workitems/edit/170847

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Windows
  • Build tasks
  • Solution Templates

Visual Studio:

  • 2017 (version: )
  • 2019 (version: )
  • for Mac (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

Activity

  1. added
    kind/bug
    kind/regression
    on Jan 7, 2020
  2. added this to the 2.1 milestone on Jan 7, 2020
  3. self-assigned this
    on Jan 14, 2020
  4. carldebilly commented on Jan 14, 2020

    @carldebilly
    Member

    The problem is not related to the <RadioButton>, it's a layouting problem.

    I reproduced the problem using the following snippet:

    <StackPanel Orientation="Horizontal" Spacing="10" VerticalAlignment="Center">
    	<!-- You should not see the "light green" border (only yellow)
    	     + both yellow & red should displays same height -->
    
    	<Rectangle Fill="Red" Width="10" Height="45" VerticalAlignment="Top" />
    
    	<Border Background="LightGreen" VerticalAlignment="Top">
    
    		<RadioButton Height="40" MinHeight="45" Width="200" MinWidth="210">
    			<RadioButton.Template>
    				<ControlTemplate TargetType="RadioButton">
    					<Grid Background="Yellow" />
    				</ControlTemplate>
    			</RadioButton.Template>
    		</RadioButton>
    	</Border>
    </StackPanel>
  5. carldebilly commented on Feb 5, 2020

    @carldebilly
    Member

    This issue has been fixed by PR #2481

  6. added a commit that references this issue on Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugkind/regression

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions