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

Fix 3357: Card double padding #3589

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

StefanoRivolta-Previero
Copy link
Contributor

Fix for bug explained in #3357 which was introduced in #3118

With the fix now this code works correctly:

<StackPanel Grid.Column="1" HorizontalAlignment="Center"  VerticalAlignment="Center">
  <materialDesign:Card  Width="100" Height="100" Padding="6">
    <Border Background="red"/>
  </materialDesign:Card>
  <Border Background="{StaticResource MaterialDesign.Brush.Card.Background}"
          Width="100" Height="100" CornerRadius="4" Margin="0 10 0 0" Padding="6"
          Effect="{StaticResource MaterialDesignElevationShadow1}">
    <Border Background="red"/>
  </Border>
</StackPanel>

HAmbD1gITb

@Keboo Keboo added this to the 5.1.0 milestone Jun 13, 2024
@Keboo Keboo added the bug label Jun 13, 2024
@Keboo Keboo merged commit abd9f3f into MaterialDesignInXAML:master Jun 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants