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 08b7969 commit e5f9200Copy full SHA for e5f9200
MaterialDesignThemes.Wpf/PopupBox.cs
@@ -22,7 +22,7 @@ namespace MaterialDesignThemes.Wpf
22
public enum PopupBoxPlacementMode
23
{
24
/// <summary>
25
- /// Display the popup below the toggle, and align the left edges.
+ /// Display the popup below the toggle, and align the left edges.3
26
/// </summary>
27
BottomAndAlignLeftEdges,
28
@@ -400,6 +400,12 @@ protected void Close()
400
private CustomPopupPlacement[] GetPopupPlacement(Size popupSize, Size targetSize, Point offset)
401
402
double x, y;
403
+
404
405
+ if (FlowDirection == FlowDirection.RightToLeft)
406
+ offset.X += targetSize.Width / 2;
407
408
409
switch (PlacementMode)
410
411
case PopupBoxPlacementMode.BottomAndAlignLeftEdges:
0 commit comments