File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,16 @@ private CustomPopupPlacement[] ComboBoxCustomPopupPlacementCallback(Size popupSi
116116 var locationY = ( int ) locationFromScreen . Y % screenHeight ;
117117
118118 var realOffsetX = ( popupSize . Width - targetSize . Width ) / 2.0 ;
119- var offsetX = DpiHelper . TransformToDeviceX ( mainVisual , offset . X ) ;
119+
120+ double offsetX ;
121+ const int rtlHorizontalOffset = 20 ;
122+
123+ if ( FlowDirection == FlowDirection . LeftToRight )
124+ offsetX = DpiHelper . TransformToDeviceX ( mainVisual , offset . X ) ;
125+ else
126+ offsetX = DpiHelper . TransformToDeviceX ( mainVisual ,
127+ offset . X - targetSize . Width - rtlHorizontalOffset ) ;
128+
120129 var defaultVerticalOffsetIndepent = DpiHelper . TransformToDeviceY ( mainVisual , DefaultVerticalOffset ) ;
121130 var upVerticalOffsetIndepent = DpiHelper . TransformToDeviceY ( mainVisual , UpVerticalOffset ) ;
122131 var downVerticalOffsetIndepent = DpiHelper . TransformToDeviceY ( mainVisual , DownVerticalOffset ) ;
You can’t perform that action at this time.
0 commit comments