Page 1 of 1
ComboBox Bug in UE4
Posted: 15 Mar 2018, 12:59
by ride_wind
Hi,
I am having trouble using the combobox in UE4.
My ComboBox has many items and a scrollbar.
Open it, Use mouse left key drag scrollbar to up or down, Click other control, and then the ComboBox don't Close.
Click the gif image to see.
Re: ComboBox Bug in UE4
Posted: 15 Mar 2018, 14:30
by sfernandez
Hi, it seems this bug is happening not only in UE4 integration. It is a problem with ComboBox mouse capture being lost when scrollbar is dragged.
Could you please report it in our bugtracker?
Thanks for your collaboration.
Re: ComboBox Bug in UE4
Posted: 16 Mar 2018, 03:39
by ride_wind
I report it, Thanks.
Besides, We can drag ListBoxItem to up or down In UE4, but ComboBoxItem is not.
So, How to achieve ComboBoxItem drag not using scrollbar ?
Re: ComboBox Bug in UE4
Posted: 16 Mar 2018, 10:30
by sfernandez
The problem with ComboBox is related to its default style that doesn't have PanningMode set. We will fix this in our style in a future release.
Meanwhile you can set it locally like this:
<ComboBox ScrollViewer.PanningMode="VerticalFirst">
And if you want to enable virtualization and pixel scrolling you can use a VirtualizingStackPanel as ItemsPanel:
<ComboBox ScrollViewer.PanningMode="VerticalFirst" ScrollViewer.CanContentScroll="True" VirtualizingPanel.ScrollUnit="Pixel">
<ComboBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel/>
</ItemsPanelTemplate>
</ComboBox>
Re: ComboBox Bug in UE4
Posted: 19 Mar 2018, 12:45
by ride_wind
The problem with ComboBox is related to its default style that doesn't have PanningMode set. We will fix this in our style in a future release.
Meanwhile you can set it locally like this:
<ComboBox ScrollViewer.PanningMode="VerticalFirst">
And if you want to enable virtualization and pixel scrolling you can use a VirtualizingStackPanel as ItemsPanel:
<ComboBox ScrollViewer.PanningMode="VerticalFirst" ScrollViewer.CanContentScroll="True" VirtualizingPanel.ScrollUnit="Pixel">
<ComboBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel/>
</ItemsPanelTemplate>
</ComboBox>
Very thanks, This is my need.