You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a parent container of a Popup implements a transform or changes scale, the overlay ignores and does not adjust size. Mouse over and click behavior will also be incorrect. The root issue appears to be a regression when ShouldConstrainToRootBounds was introduced. 1.3.230724000 and earlier work properly and overlay content is scaled/located correctly.
Describe the bug
If a parent container of a Popup implements a transform or changes scale, the overlay ignores and does not adjust size. Mouse over and click behavior will also be incorrect. The root issue appears to be a regression when ShouldConstrainToRootBounds was introduced. 1.3.230724000 and earlier work properly and overlay content is scaled/located correctly.
Sample app demonstrating the issue: PopupSizeIssue.zip
Steps to reproduce the bug
Wrap a combobox within a LayoutTransformControl with scaling applied.
Sample App: PopupSizeIssue.zip
Expected behavior
Popup overlay should be sized properly to the scale/transform applied.
Screenshots
Using Live Visual Tree will show the PopupBorder being sized correctly and the overlay being incorrect:
From the sample app, the incorrect layout:
And the correct layout if running 1.3.230724000 or earlier:
NuGet package version
WinUI 3 - Windows App SDK 1.5.1: 1.5.240311000
Windows version
Windows 11 (22H2): Build 22621
Additional context
All Popups exhibit this issue, regardless of where they are defined. ShouldConstrainToRootBounds True/False both exhibit the issue.
The text was updated successfully, but these errors were encountered: