Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SelectItem too short, displaying scrollbar

    Hello,

    I'm using SelectItems for my forms, and have problems with the picklist in the selectitem. The picklist is very short with a scrollbar at the right hand side.

    I've tried to call setPickListHeight to increase the height of the picklist, but it does not help.

    I've also copied the code from the showcase, "Forms -Various Controls - Combobox with styled entries" into my system and tested that code. I still get the problem with the scrollbar:

    Code:
      DynamicForm form = new DynamicForm();  
      SelectItem selectItem2 = new SelectItem();  
             selectItem2.setTitle("Select");  
             selectItem2.setHint("<nobr>A combobox with styled entries</nobr>");  
             selectItem2.setValueMap("<span style='color:#FF0000;'>Red</span>",  
                     "<span style='color:#00FF00;'>Green</span>",  
                     "<span style='color:#0000FF;'>Blue</span>");  
     form.setFields(selectItem2);  
     form.draw();
    The code above in an exact copy of the showcase. Its working in the showcase, the 3 elements are displayed without a scrollbar. But in my system I get a scrollbar as the attached image show(snapshot.jpg)

    Any idea what I'm doing wrong?

    Thanks a million
    Rolf
    Attached Files

    #2
    You have external CSS, probably because you are inheriting a default GWT theme. Get rid of it and the problem will go away.

    Comment


      #3
      Indeed it did.

      (I wonder exactly what in my external css that caused this problem)

      Thanks a lot.

      Comment


        #4
        Is there any way to set the minimal height of the PickList? My screen resolution is 1400x900 and I enlarge fonts by Firefox's Ctrl++. When I do so, the height of the PickList is too short to see the option(there is ony one option in the PickList). setPickListHeight(int pickListHeight) is to set the maximum height of the PickList. So it dose not help.

        Dose anyone know a work around to set the minimal height of the PickList?
        Any hint is appreciated.

        Comment

        Working...
        X