We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 348a87f commit 12f753bCopy full SHA for 12f753b
MaterialDesignThemes.Wpf/ComboBoxPopup.cs
@@ -108,7 +108,7 @@ private CustomPopupPlacement[] ComboBoxCustomPopupPlacementCallback(Size popupSi
108
int locationX = (int) locationFromScreen.X%(int) SystemParameters.PrimaryScreenWidth;
109
int locationY = (int) locationFromScreen.Y%(int) SystemParameters.PrimaryScreenHeight;
110
111
- if (locationX + popupSize.Width > SystemParameters.PrimaryScreenWidth)
+ if (locationX + popupSize.Width > SystemParameters.PrimaryScreenWidth || locationX < 0)
112
{
113
SetChildTemplateIfNeed(DefaultContentTemplate);
114
0 commit comments