ComboBox dropdown / flyout opens in the wrong location when using certain RelativePanel attached properties #6554
Labels
area-ComboBox
area-Layouts
no-issue-activity
product-winui3
WinUI 3 issues
team-Controls
Issue for the Controls team
Describe the bug
When using RelativePanel.LeftOf in the default tutorial as per repro, the dropdown / flyout left edge is anchored exactly 69px (not kidding) from the right edge of the ComboBox control.
When using RightOf, or no attached properties, left aligns to left as normal.
Other RelativePanel properties also change the alignment, e.g. AlignHorizontalCenterWith myButton halves the effect. Didn't measure that one, but it's a reasonably safe bet.
Steps to reproduce the bug
Expected behavior
Using RelativePanel attached properties have on their own no effect on the ComboBox, other than positioning the control in its flyout closed state.
Screenshots
LeftOf:
![image](https://user-images.githubusercontent.com/89286531/148350921-7fd9cf0c-d47f-494f-9717-1cc6175e27b2.png)
![image](https://user-images.githubusercontent.com/89286531/148350941-329e9d20-3181-4c6d-b409-7f8fbbfd60a3.png)
RightOf / no attached properties:
![image](https://user-images.githubusercontent.com/89286531/148351125-944dee72-364b-4232-b800-6c66858c059d.png)
![image](https://user-images.githubusercontent.com/89286531/148351137-18578aa6-d1ee-4f1a-a167-b8bbc85a2500.png)
NuGet package version
WinUI 3 - Windows App SDK 1.0 (If you're seeing your issue in older previews of WinUI 3, please try this release)
Windows app type
Device form factor
Desktop
Windows version
May 2021 Update (19043)
Additional context
Screenshots are Win 11, also repro'd on 19043.
The text was updated successfully, but these errors were encountered: