Skip to content

Commit 2b0858b

Browse files
committed
Update ComboBoxHelper.cs
1 parent d09e404 commit 2b0858b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/iNKORE.UI.WPF.Modern/Controls/Helpers/ComboBoxHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private static void UpdateCornerRadius(ComboBox comboBox, bool isDropDownOpen)
120120
popup.VerticalOffset = (comboBox.SelectedIndex + 1) * -1.0 / comboBox.Items.Count * childContainer.ActualHeight;
121121
}
122122

123-
if (popup.VerticalOffset != 0)
123+
if (popup.VerticalOffset is 0)
124124
{
125125
popupRadius = GetFilteredPopupRadius(popupRadius, isOpenDown);
126126
}

0 commit comments

Comments
 (0)