Announcement

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

    Context menu on FF shows only 1 item

    1. the *complete* SmartGWT or SmartClient version
    SmartClient Version: v10.0p_2015-06-24/LGPL Development Only (built 2015-06-24)
    GWT 2.5.0

    2. browser(s) and version(s) involved
    FF 19: fails
    Chrome 43: passes
    IE 9: passes

    Code:
    final Menu menu = new Menu ();
    menu.addItem (new MenuItem ("A"));
    menu.addItem (new MenuItem ("B"));
    menu.addItem (new MenuItem ("C"));
    menu.showContextMenu ();
    Attached Files

    #2
    Full example:
    Code:
    public class TestContextMenu implements EntryPoint {
    
      /**
       * The EntryPoint interface
       * Upgrading SmartGWT from 4.0-2013-11-30 to 5.0-2015-06-25
       * On FF19 the following shows only the "A" item
       * On Chome 43 and IE9 it properly shows all items
       */
      public void onModuleLoad () {
        
        final IButton button = new IButton ();
        button.setTitle ("Show Context Menu");
        button.addClickHandler (new ClickHandler () {
          public void onClick (ClickEvent event) {
            
            final Menu menu = new Menu ();
            menu.addItem (new MenuItem ("A"));
            menu.addItem (new MenuItem ("B"));
            menu.addItem (new MenuItem ("C"));
            menu.showContextMenu ();
          }
        });
        button.show ();
      }
    }

    Comment


      #3
      I just realized that this happens on the live showcase.
      I attached a screenshot for today's showcase, and below is the info...

      BTW, also on the showcase with FF19, the View Source button on the top right stays disabled.
      It works with Chrome 43.

      1. the *complete* SmartGWT or SmartClient version from the lower left-hand corner of the Developer Console:
      SmartClient Version: v10.0p_2015-07-27/LGPL Development Only (built 2015-07-27)

      2. browser(s) and version(s) involved
      FF 19

      3. for a server-side problem, the *complete* logs generated during processing of the failing request (do *not* trim to just the error message)
      n/a

      4. for any problem processing a server response, the actual response as shown in the RPC tab in the Developer Console
      n/a

      5. if there is a JavaScript error, the stack trace logged in the Developer Console (see FAQ)
      n/a

      6. sample code if applicable
      From:
      http://www.smartclient.com/smartgwt/...ce_columnorder

      Code:
      import com.smartgwt.client.types.Alignment;  
      import com.smartgwt.client.types.ListGridFieldType;  
      import com.smartgwt.client.widgets.Canvas;  
      import com.smartgwt.client.widgets.IButton;  
      import com.smartgwt.client.widgets.events.ClickEvent;  
      import com.smartgwt.client.widgets.events.ClickHandler;  
      import com.smartgwt.client.widgets.grid.ListGrid;  
      import com.smartgwt.client.widgets.grid.ListGridField;  
      import com.smartgwt.sample.showcase.client.data.CountryData;  
        
      import com.google.gwt.core.client.EntryPoint;  
        
      public class ColumnOrderSample implements EntryPoint {  
        
          public void onModuleLoad() {  
        
              Canvas canvas = new Canvas();  
        
              final ListGrid countryGrid = new ListGrid();  
              countryGrid.setWidth(500);  
              countryGrid.setHeight(224);  
              countryGrid.setShowAllRecords(true);  
        
              ListGridField countryCodeField = new ListGridField("countryCode", "Flag", 40);  
              countryCodeField.setAlign(Alignment.CENTER);  
              countryCodeField.setType(ListGridFieldType.IMAGE);  
              countryCodeField.setImageURLPrefix("flags/16/");  
              countryCodeField.setImageURLSuffix(".png");  
        
              ListGridField nameField = new ListGridField("countryName", "Country");  
              ListGridField capitalField = new ListGridField("capital", "Capital");  
              ListGridField continentField = new ListGridField("continent", "Continent");  
              countryGrid.setFields(countryCodeField, nameField, capitalField, continentField);  
              countryGrid.setCanResizeFields(true);  
              countryGrid.setData(CountryData.getRecords());  
              canvas.addChild(countryGrid);  
        
              IButton hideCapital = new IButton("Hide Capitals");  
              hideCapital.setLeft(0);  
              hideCapital.setTop(240);  
              hideCapital.addClickHandler(new ClickHandler() {  
                  public void onClick(ClickEvent event) {  
                      countryGrid.hideField("capital");  
                  }  
              });  
              canvas.addChild(hideCapital);  
        
              IButton showCapitals = new IButton("Show Capitals");  
              showCapitals.setLeft(120);  
              showCapitals.setTop(240);  
              showCapitals.addClickHandler(new ClickHandler() {  
                  public void onClick(ClickEvent event) {  
                      countryGrid.showField("capital");  
                  }  
              });  
              canvas.addChild(showCapitals);  
        
              canvas.draw();  
          }  
        
      }
      Attached Files

      Comment


        #4
        Do you see this on any current browser? FF19 is 3 ESRs out of date.

        Comment


          #5
          I do not see this with the latest versions of any browser.

          Comment

          Working...
          X