ride_wind
Topic Author
Posts: 34
Joined: 07 Feb 2018, 03:33

ComboBox Bug in UE4

15 Mar 2018, 12:59

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.
UE4ComboBox.gif
Click the gif image to see.
 
User avatar
sfernandez
Site Admin
Posts: 2983
Joined: 22 Dec 2011, 19:20

Re: ComboBox Bug in UE4

15 Mar 2018, 14:30

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.
 
ride_wind
Topic Author
Posts: 34
Joined: 07 Feb 2018, 03:33

Re: ComboBox Bug in UE4

16 Mar 2018, 03:39

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 ?
 
User avatar
sfernandez
Site Admin
Posts: 2983
Joined: 22 Dec 2011, 19:20

Re: ComboBox Bug in UE4

16 Mar 2018, 10:30

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>
 
ride_wind
Topic Author
Posts: 34
Joined: 07 Feb 2018, 03:33

Re: ComboBox Bug in UE4

19 Mar 2018, 12:45

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.

Who is online

Users browsing this forum: Google [Bot], vinick and 55 guests