Announcement

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

    Dropdown list bug

    I'm having trouble getting the dropdown list working in the Chrome browser. My test app works fine in IE 6 and FireFox. In Chrome, however, the list does not drop after clicking on the dropdown button.

    I'm using:

    GWT 2
    SmartGWT 2.0
    Chrome 4.0.249.78

    What is interesting is that the dropdown button works correctly on Chrome with the online showcase at http://www.smartclient.com/smartgwt/showcase/#main, but when I build and run the sample in hosted mode on my local system the drop down list also fails in the showcase.

    Here's my simple test case:

    Code:
    package newHello.client;
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.ui.RootPanel;
    import com.smartgwt.client.widgets.form.DynamicForm;
    import com.smartgwt.client.widgets.form.fields.SelectItem;
    import java.util.LinkedHashMap;
    
    public class NewHello implements EntryPoint 
    {
    	public void onModuleLoad()
    	{
            LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>();
            valueMap.put("EnterpriseBlue", "Enterprise Blue");
            valueMap.put("Enterprise", "Enterprise Gray");
            
            SelectItem selectItem = new SelectItem();
            selectItem.setHeight(21);
            selectItem.setWidth(130);
            selectItem.setValueMap(valueMap);
            selectItem.setDefaultValue("EnterpriseBlue");
            selectItem.setShowTitle(false);
            
            DynamicForm form = new DynamicForm();
            form.setPadding(0);
            form.setMargin(0);
            form.setCellPadding(1);
            form.setNumCols(1);
            form.setFields(selectItem);
    
    	RootPanel.get().add(form);
    	}
    }

    #2
    Hi CyberGuy,

    Have you already checked for possible external CSS (see the FAQ item about this)?

    Comment


      #3
      I've got the same problem with Chrome and dropdowns in development mode (described here as well http://forums.smartclient.com/showthread.php?t=8325)

      Comment


        #4
        Please see my response here. It's most likely a result of a bug with the Chrome plugin related to the use of __gwt_ObjectId. Please file an issue with a pointer to this thread so that it can be tracked. I'll follow up with the GWT team once I narrow down the problem further.

        Sanjiv

        Comment


          #5
          Hi Sanjiv, thanks for the explanation.
          Too bad Google's Chrome seems to be the slowest to develop GWT projects with :)


          Issue 386 was already created for this problem.

          Comment

          Working...
          X