Browse Source

fit dropdown popup in screen

Andrey Kunchev 7 years ago
parent
commit
b8b7de237d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Avalonia.Themes.Default/DropDown.xaml

+ 1 - 0
src/Avalonia.Themes.Default/DropDown.xaml

@@ -35,6 +35,7 @@
                    MinWidth="{Binding Bounds.Width, RelativeSource={RelativeSource TemplatedParent}}"
                    MaxHeight="{TemplateBinding MaxDropDownHeight}"
                    PlacementTarget="{TemplateBinding}"
+                   ObeyScreenEdges="True"
                    StaysOpen="False">
               <Border BorderBrush="{DynamicResource ThemeBorderMidBrush}"
                       BorderThickness="1">