Announcement

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

    Menuitem not visible when the using latest version of Chrome

    I am running SmartClient Version: v11.0p_2016-03-31/PowerEdition. I recently upgraded Chrome to version 62.0.3202.75 which is the latest version. I've noticed that a menu that I built no longer appears as it used to. I am using MenuItem.setEmbeddedComponent() in order to layout buttons with icons horizontally in pairs. However, the first row of buttons is no longer visible. Please see the attached images from Chrome and IE 11.

    Any advice would be greatly appreciated.

    Thanks,
    Ken

    IE11: Click image for larger version

Name:	IE11.JPG
Views:	107
Size:	2.8 KB
ID:	250090Chrome: Click image for larger version

Name:	Chrome.JPG
Views:	120
Size:	2.4 KB
ID:	250091

    #2
    The first thing to do is update to the latest patched build of SmartGWT 6.0 (SmartClient 11.0), from smartclient.com/builds - your current build is more than 18 months old and pre-dates many releases of Chrome.

    If you still see issues against the latest patched build, please show a minimalist, standalone test-case we can run to see the issue.

    Comment


      #3
      I've updated to the latest build and I'm still seeing the problem. I've attached the code I am using to build the screen as well as two screenshots. The first illustrates the issue. The second one shows the version that I am running. Interestingly, as you can see, when I bring up the console window, the missing menu buttons appear. I verified that this is also the case in my main application.

      Click image for larger version

Name:	Test1.JPG
Views:	193
Size:	3.2 KB
ID:	250109

      Click image for larger version

Name:	Test2.JPG
Views:	116
Size:	48.8 KB
ID:	250110

      CodeSample.txt

      Comment


        #4
        We just ran your sample as-is, in the exact same build of Chrome, and against the latest SmartGWT 6.0 build (on Windows 10) - and we're getting a "works for us" result...

        It's worth checking you don't have multiple versions of SmartGWT in the path, and ensuring you've properly cleared the GWT and browser caches.

        If you still see problems, please try switching off any browser plug-ins and, if possible, try the same test on other machines - after that, let us know your OS.

        Comment


          #5
          Thanks for your response. I have done the things you mentioned and still see the issue. I have not tested on another machine but the issue was first brought to my attention by others who are seeing the problem, though I don't have the specifics of their machine configuration. I am running Windows 7 Professional.

          I only sent you a code snippet so it's still possible that there is something different between our two tests. Is it possible for you to post your entire sample project so I could test that and see if it's something else I may be doing?

          Comment


            #6
            We just imported our builtinds sample to Eclipse, wrapped your entire sample code in a class, without changing it, created an instance of the class and called draw() on it:

            Code:
            import com.smartgwt.client.types.Alignment;
            import com.smartgwt.client.widgets.Button;
            import com.smartgwt.client.widgets.Window;
            import com.smartgwt.client.widgets.layout.HStack;
            import com.smartgwt.client.widgets.menu.Menu;
            import com.smartgwt.client.widgets.menu.MenuItem;
            import com.smartgwt.client.widgets.toolbar.RibbonGroup;
            import com.smartgwt.client.widgets.toolbar.ToolStripMenuButton;
            
            public class MenuWidgets extends Window {
            
                public MenuWidgets () {
            
                    setTitle("Menu Test");            
            
                    ToolStripMenuButton toolStripMenuButton = new ToolStripMenuButton();
                    toolStripMenuButton.setMenu(new Menu());        
            
                    Menu menu = toolStripMenuButton.getMenu();
            
                    MenuItem mi = new MenuItem("");
                    mi.setEmbeddedComponent(createTwoButtonStack("First", "Second"));
                    menu.addItem(mi);
            
                    mi = new MenuItem("");
                    mi.setEmbeddedComponent(createTwoButtonStack("Third", "Fourth"));
                    menu.addItem(mi);
            
                    // Report Group
                    RibbonGroup ribbonGroup = new RibbonGroup();        
                    ribbonGroup.setTitle("Test");  
                    ribbonGroup.setTitleAlign(Alignment.LEFT);  
                    ribbonGroup.setNumRows(1);  
                    ribbonGroup.addControl(toolStripMenuButton);
            
                    addItem(ribbonGroup);
                }
            
                private HStack createTwoButtonStack(String label1, String label2) {
            
                    Button button1 = new Button(label1);
                    button1.setWidth(50);
                    button1.setHeight(30);
            
                    Button button2 = new Button(label2);
                    button2.setWidth(50);
                    button2.setHeight(30);
            
                    HStack stack = new HStack();
                    stack.setWidth(50);
                    stack.setHeight(30);
                    stack.setMembers(button1, button2);
            
                    return stack;
                }
            }
            And then:

            Code:
                    MenuWidgets test = new MenuWidgets();
                    test.draw();
            At this point, please try it out on other machines and get back to us with your findings.

            Also, building a standalone test-case can be helpful in finding application-specific problems, so we'd recommend doing that - especially if our test case works for you.

            Comment

            Working...
            X