Page 1 of 1

Horizontal size of a Popup in a ComboBox can not exceed 1024

Posted: 06 Nov 2013, 11:02
by kritzelkratz
can anybody confirm that the horizontal size of the Popup in a ComboBox can not exceed 1024 pixels?
everything above 1024 seems to get cut off. the ComboBox ToggleButton (DropDownButton) does not have this limit and displays correctly.

Re: horizontal size of a Popup in a ComboBox can not exceed

Posted: 06 Nov 2013, 12:27
by sfernandez
Hi,

I tried the following xaml:
<Grid
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Background="White">
    <ComboBox VerticalAlignment="Center" Margin="5">
        <ComboBoxItem Content="First item in the list"/>
        <ComboBoxItem Content="Second item in the list"/>
        <ComboBoxItem Content="Third item in the list"/>
        <ComboBoxItem Content="Fourth item in the list"/>
    </ComboBox>
</Grid>
In a FullHD monitor, with the option 'Maximize on Play' so the ComboBox extends to almost 1900 pixels, and the Popup has no limitations in its width, it is sized to the width of the parent ComboBox.
popup-width.png

Re: horizontal size of a Popup in a ComboBox can not exceed

Posted: 06 Nov 2013, 17:27
by kritzelkratz
ok, our problem seems to be that the width of the popup is limited by something else.
in our setup, we use a viewbox with a width of 2048, regardless of the screen it will run on.
if you display the following code in the unity editor with a screen size of 1024x768, you can see how the popup is cut off.
<Viewbox Stretch="Uniform">
    <Grid x:Name="LayoutRoot" Background="White"
        Width="2048" Height="1536" SnapsToDevicePixels="true">

     <ComboBox VerticalAlignment="Center" Margin="5">
        <ComboBoxItem Content="First item in the list"/>
        <ComboBoxItem Content="Second item in the list"/>
        <ComboBoxItem Content="Third item in the list"/>
        <ComboBoxItem Content="Fourth item in the list"/>
    </ComboBox>
   
    </Grid>
</Viewbox>

Re: horizontal size of a Popup in a ComboBox can not exceed

Posted: 06 Nov 2013, 19:13
by sfernandez
Ok, with this layout I was able to reproduce what you were explaining. It seems that there is bug in the Popup layout code when it is placed inside a Viewbox. Will be solved as soon as possible ;)

Re: Horizontal size of a Popup in a ComboBox can not exceed

Posted: 07 Nov 2013, 11:24
by kritzelkratz
thanks!

Re: Horizontal size of a Popup in a ComboBox can not exceed

Posted: 06 Mar 2014, 15:13
by kritzelkratz
this bug is still there, and it is a major bug in our product.
are there still plans to fix this? if so, an estimate would be much appreciated, so that we can plan accordingly.

thanks!

Re: Horizontal size of a Popup in a ComboBox can not exceed

Posted: 06 Mar 2014, 17:06
by sfernandez
This problem was planned to be solved alongside other issues related to Popup elements. But being a top priority for you, we will fix it during current iteration.

I've seen you created the ticket in the bugtracker so we will follow the evolution of this issue there.

Thanks for your patience.