Announcement

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

    Issue with the header context menu

    Hi,

    I just noticed an issue with the header context menu of a listgrid:
    If your page contains a listgrid that spans till the right edge of the screen, try opening the header context menu of the right-most column. The whole canvas will move to the left in order to allow the context menu to appear! So, a chunk of the screen disappears with no scrolling back to it. The only way i could make it get back in its place is by opening another header context menu for one of the columns of the middle. The screen would jump back in place. Is this a base bug?

    PS: This does not occur when right-clicking on the header, but only when clicking on the corner-button.

    Please let me know.

    Thanks.

    #2
    Hi,

    I also faced this issue.

    Below is a standalone test case and attached is the screen shot of the behavior.

    Code:
    package com.test.headercontext.client;
    
    import com.google.gwt.core.client.EntryPoint;
    import com.smartgwt.client.types.Alignment;
    import com.smartgwt.client.types.ListGridFieldType;
    import com.smartgwt.client.widgets.grid.ListGrid;
    import com.smartgwt.client.widgets.grid.ListGridField;
    import com.smartgwt.client.widgets.layout.VLayout;
    
    public class HeaderContext implements EntryPoint
    {
    
        public void onModuleLoad()
        {
    
            VLayout stack = new VLayout();
            stack.setMargin(5);
            stack.setMembersMargin(5);
            stack.setWidth(1300);
            stack.setHeight(800);
    
            ListGrid countryGrid = new ListGrid();
            countryGrid.setWidth100();
            countryGrid.setHeight100();
            countryGrid.setAlternateRecordStyles(true);
            countryGrid.setShowAllRecords(true);
            countryGrid.setWrapCells(true);
            countryGrid.setFixedRecordHeights(false);
    
            ListGridField nameField = new ListGridField("countryName", "Country",
                    120);
            ListGridField backgroundField = new ListGridField("background",
                    "Background");
            ListGridField countryCodeField = new ListGridField("countryCode",
                    "Flag", 50);
    
            countryCodeField.setAlign(Alignment.CENTER);
            countryCodeField.setType(ListGridFieldType.IMAGE);
            countryCodeField.setImageSize(24);
            countryCodeField.setImageURLPrefix("flags/24/");
            countryCodeField.setImageURLSuffix(".png");
    
            ListGridField continentField = new ListGridField("continent",
                    "continent", 100);
            ListGridField independenceField = new ListGridField("independence",
                    "independence", 100);
    
            countryGrid.setFields(nameField, backgroundField, countryCodeField,
                    continentField, independenceField);
    
            countryGrid.setData(CountryData.getRecords());
    
            stack.addMember(countryGrid);
    
            stack.draw();
        }
    
    }
    Note that CountryDate is the CountryData class of Showcase.

    First picture is the initial screen
    Second picture is when we press the menu button of the rightmost column
    Third picture is the screen after the second button (the screen stays as it is, the grid moves to the left) till we press the header of another column.
    Attached Files

    Comment


      #3
      What version of SmartGWT are you using?

      Comment


        #4
        SmartGT 1.1
        Nightly build of 20090618

        I am using GWT 1.6.4

        Comment


          #5
          SmartGWT 1.2 has been released and you should upgrade to this version, or the latest nightly. Let us know if you're still encountering the issue after upgrading.

          Comment


            #6
            Having looked into this further we've managed to find and fix the underlying issue. Fix will be hitting SVN soon

            Comment


              #7
              I've updated SVN.

              Comment


                #8
                Thank you all!

                It is working now!

                Comment

                Working...
                X