Browse Source

Merge branch 'master' into control-validation-message-fix

pull/4704/head
Kieran Devlin 6 years ago
committed by GitHub
parent
commit
1b1f561ab1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/Primitives/PopupPositioning/ManagedPopupPositioner.cs
  2. 4
      src/Avalonia.Themes.Fluent/Button.xaml

2
src/Avalonia.Controls/Primitives/PopupPositioning/ManagedPopupPositioner.cs

@ -221,7 +221,7 @@ namespace Avalonia.Controls.Primitives.PopupPositioning
if (!FitsInBounds(unconstrainedRect, PopupAnchor.Bottom)) if (!FitsInBounds(unconstrainedRect, PopupAnchor.Bottom))
{ {
unconstrainedRect = unconstrainedRect.WithHeight(bounds.Height - unconstrainedRect.Y); unconstrainedRect = unconstrainedRect.WithHeight(bounds.Bottom - unconstrainedRect.Y);
} }
if (IsValid(unconstrainedRect)) if (IsValid(unconstrainedRect))

4
src/Avalonia.Themes.Fluent/Button.xaml

@ -77,7 +77,7 @@
<Setter Property="TextBlock.Foreground" Value="{DynamicResource AccentButtonForegroundPressed}" /> <Setter Property="TextBlock.Foreground" Value="{DynamicResource AccentButtonForegroundPressed}" />
</Style> </Style>
<Style Selector=":is(Button)"> <Style Selector="Button, RepeatButton, ToggleButton">
<Setter Property="RenderTransform" Value="none" /> <Setter Property="RenderTransform" Value="none" />
<Setter Property="Transitions"> <Setter Property="Transitions">
<Transitions> <Transitions>
@ -86,7 +86,7 @@
</Setter> </Setter>
</Style> </Style>
<Style Selector=":is(Button):pressed"> <Style Selector="Button:pressed, RepeatButton:pressed, ToggleButton:pressed">
<Setter Property="RenderTransform" Value="scale(0.98)" /> <Setter Property="RenderTransform" Value="scale(0.98)" />
</Style> </Style>

Loading…
Cancel
Save