WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

Scale transforms don't apply to ComboBox popups

Open Foda opened this issue 1 year ago • 0 comments

Describe the bug

When running as an packaged or unpackaged app, applying a RenderTransform or CompositeTransform doesn't scale the ComboBox popup. Using a Viewbox also does not work properly. image

This also results in wrong hit-testing too.

Steps to reproduce the bug

  1. Add the following into a sample app:
<ComboBox
   Width="300"
   Height="50">
   <ComboBox.RenderTransform>
       <ScaleTransform ScaleX="2" ScaleY="2" />
   </ComboBox.RenderTransform>
   <ComboBox.Items>
       <x:String>Hello world</x:String>
       <x:String>Hello world</x:String>
       <x:String>Hello world</x:String>
       <x:String>Hello world</x:String>
       <x:String>Hello world</x:String>
   </ComboBox.Items>
</ComboBox>
  1. Debug the app

Expected behavior

The ComboBox popup should also scale to the parent ComboBox

Screenshots

No response

NuGet package version

None

Packaging type

Packaged (MSIX), Unpackaged

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

This issue is affecting customers using Dotnet MAUI

Foda avatar May 16 '24 21:05 Foda