locked
Combobox popup goes off screen RRS feed

  • Question

  • When I create a combobox using fontsize 100 the popup goes of the screen. Is this a bug in the combobox? or does it only support fonts of a certain size?

    Update: It seems the largest font that works without the popup going off the screen is 72, which I guess makes sense as 72 is the standard largest font...

    • Edited by erothvt Wednesday, October 24, 2012 8:47 PM Update
    Wednesday, October 24, 2012 8:04 PM

All replies

  • I did this test:

    <ComboBox FontSize="100" Background="Orange" >
                <ComboBox.Items>
                    <ComboBoxItem> item 1</ComboBoxItem>
                    <ComboBoxItem>item 2</ComboBoxItem>
                    <ComboBoxItem>item 3</ComboBoxItem>
                    <ComboBoxItem>item 1</ComboBoxItem>
                    <ComboBoxItem>item 2</ComboBoxItem>
                    <ComboBoxItem>item 3</ComboBoxItem>
                    <ComboBoxItem>item 1</ComboBoxItem>
                    <ComboBoxItem>item 2</ComboBoxItem>
                    <ComboBoxItem>item 3</ComboBoxItem>
                    <ComboBoxItem>item 1</ComboBoxItem>
                    <ComboBoxItem>item 2</ComboBoxItem>
                    <ComboBoxItem>item 3</ComboBoxItem>
                    <ComboBoxItem>item 1</ComboBoxItem>
                    <ComboBoxItem>item 2</ComboBoxItem>
                    <ComboBoxItem>item 3</ComboBoxItem>
                    <ComboBoxItem>item 1</ComboBoxItem>
                    <ComboBoxItem>item 2</ComboBoxItem>
                    <ComboBoxItem>item 3</ComboBoxItem>
                </ComboBox.Items>
            </ComboBox>

    And yes the combobox occupies the entire space of the page. And i think maybe is the normal behavior because fontsize equal to 100 is a very big size and it requires the minimum space.

    Why are you thinking it is bug?

    Why are you doing this? It makes senses?

    i did another test, like this:

     <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition  Height="*"/>
            </Grid.RowDefinitions>
            <ComboBox FontSize="100" Background="Orange" Grid.Row="0" >
                <ComboBox.Items>
                    <ComboBoxItem> item 1</ComboBoxItem>
                    <ComboBoxItem>item 2</ComboBoxItem>
                    <ComboBoxItem>item 3</ComboBoxItem>
                    <ComboBoxItem>item 1</ComboBoxItem>
                    <ComboBoxItem>item 2</ComboBoxItem>
                    <ComboBoxItem>item 3</ComboBoxItem>
                    <ComboBoxItem>item 1</ComboBoxItem>
                    <ComboBoxItem>item 2</ComboBoxItem>
                    <ComboBoxItem>item 3</ComboBoxItem>
                    <ComboBoxItem>item 1</ComboBoxItem>
                    <ComboBoxItem>item 2</ComboBoxItem>
                    <ComboBoxItem>item 3</ComboBoxItem>
                    <ComboBoxItem>item 1</ComboBoxItem>
                    <ComboBoxItem>item 2</ComboBoxItem>
                    <ComboBoxItem>item 3</ComboBoxItem>
                    <ComboBoxItem>item 1</ComboBoxItem>
                    <ComboBoxItem>item 2</ComboBoxItem>
                    <ComboBoxItem>item 3</ComboBoxItem>
                </ComboBox.Items>
            </ComboBox>
        </Grid>

    and the behavior is different, but it maybe is related who the control is hosted in parent control. Like you see in two tests they are diferent, but for me is not so strange.


    Sara Silva
    My Windows 8 Store Apps Samples
    Follow me in Twitter @saramgsilva

    My Windows 8 Store Apps: Female Pill | Galinho (Tic tac Toe) | 24
    (If my reply answers your question, please propose it as an answer because it will help other users)





    • Edited by saramgsilva Wednesday, October 24, 2012 8:25 PM
    Wednesday, October 24, 2012 8:21 PM
  • My issue is not that it takes up the entire page it is that the bottom items don't show up. As the scroll bar scrolls off the screen. For a font size of 100 you cant see the last two items. As you can see in my update above, if you make the font size 72 everything shows. if you do anything greater then that you start getting the last items chopped from the screen.
    Wednesday, October 24, 2012 8:51 PM