Results 1 to 5 of 5

Thread: IE9: Tree problem

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member
    Join Date
    Aug 2011
    Location
    London
    Posts
    24

    Default IE9: Tree problem

    Hi,

    I came across this issue with tree in IE9 where if Tree got horizontal scroll bar visible hovering over nodes causes tree height to increase. (see onModuleLoad below)
    How do I fix this?

    Code:
        @Override
        public void onModuleLoad()
        {
            TreeNode node1 = new TreeNode("Tree node 1");
            TreeNode node2 = new TreeNode("Tree node 2");
            TreeNode node3 = new TreeNode("Tree node 3");
            TreeNode node4 = new TreeNode("Tree node 4");
    
            TreeStore<TreeNode> store = new TreeStore<TreeNode>(createModelKeyProvider());
    
            store.add(node1);
            store.add(node1, node2);
            store.add(node2, node3);
            store.add(node3, node4);
    
            Tree<TreeNode, String> tree = new Tree<TreeNode, String>(store, createValueProvider());
    
            VerticalLayoutContainer vlc = new VerticalLayoutContainer();
            Portlet panel = new Portlet();
            panel.setWidth(100);
            panel.add(tree);
    
            vlc.add(panel, new VerticalLayoutData(-1, -1));
    
            RootLayoutPanel.get().add(vlc);
        }
    
        public static ModelKeyProvider<TreeNode> createModelKeyProvider()
        {
            return new ModelKeyProvider<TreeNode>()
            {
                @Override
                public String getKey(final TreeNode item)
                {
                    return item.getId();
                }
            };
        }
    
        public static ValueProvider<TreeNode, String> createValueProvider()
        {
            return new ValueProvider<TreeNode, String>()
            {
                @Override
                public void setValue(final TreeNode object, final String value)
                {
                    // Noop
                }
    
                @Override
                public String getValue(final TreeNode object)
                {
                    return object.getName();
                }
    
                @Override
                public String getPath()
                {
                    return "name";
                }
            };
        }
    
        private class TreeNode
        {
            private final String name;
    
            public TreeNode(final String nameParam)
            {
                name = nameParam;
            }
    
            public String getId()
            {
                return name;
            }
    
            public String getName()
            {
                return name;
            }
        }

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    This sounds like a bug. Thanks for the report. I will move this thread to the bugs forum for further investigation.


    Which version of GXT 3 are you using exactly?

  3. #3
    Ext GWT Premium Member
    Join Date
    Aug 2011
    Location
    London
    Posts
    24

    Default

    We are still in 3.0.0

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    Have you already tried to update to the latest, 3.0.4? There were quite some changes between those versions.

  5. #5
    Ext GWT Premium Member
    Join Date
    Aug 2011
    Location
    London
    Posts
    24

    Default

    I am in to process of getting approval to get our GXT license renewed. Will try 3.0.4 once it is done.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •