Skip to content

Commit e5f9200

Browse files
MaterialDesignMultiFloatingActionPopupBox RTL bug fixed
1 parent 08b7969 commit e5f9200

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

MaterialDesignThemes.Wpf/PopupBox.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace MaterialDesignThemes.Wpf
2222
public enum PopupBoxPlacementMode
2323
{
2424
/// <summary>
25-
/// Display the popup below the toggle, and align the left edges.
25+
/// Display the popup below the toggle, and align the left edges.3
2626
/// </summary>
2727
BottomAndAlignLeftEdges,
2828
/// <summary>
@@ -400,6 +400,12 @@ protected void Close()
400400
private CustomPopupPlacement[] GetPopupPlacement(Size popupSize, Size targetSize, Point offset)
401401
{
402402
double x, y;
403+
404+
405+
if (FlowDirection == FlowDirection.RightToLeft)
406+
offset.X += targetSize.Width / 2;
407+
408+
403409
switch (PlacementMode)
404410
{
405411
case PopupBoxPlacementMode.BottomAndAlignLeftEdges:

0 commit comments

Comments
 (0)