Announcement

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

    Tree Grid: no indentation in IE6 and IE8

    Hello.

    I'm building a tree manually but there is no indentation between the parent and children folders in IE6 and IE8 whereas there is an indentation in Mozilla and Chrome.

    Here is my code:

    Code:
    TreeGrid treeGrid = new TreeGrid();
    treeGrid.setTreeFieldTitle("Groupes");
    treeGrid.setCanEdit(false);
    treeGrid.setSelectionType(SelectionStyle.SINGLE);
    treeGrid.setShowResizeBar(true);
    treeGrid.setDataPageSize(30);
    treeGrid.setWidth100();
    treeGrid.setHeight100();
    
    Tree tree = new Tree();
    tree.setModelType(TreeModelType.PARENT);
    tree.setShowRoot(false);
    
    TreeNode groupeNode = new TreeNode();
    groupeNode.setIsFolder(true);
    groupeNode.setTitle("ECH2 - Administrateur M");
    tree.add(groupeNode, "/");
    
    TreeNode entiteTitleNode = new TreeNode();
    entiteTitleNode.setIsFolder(true);
    entiteTitleNode.setTitle("Entités");
    tree.add(entiteTitleNode, groupeNode);
    
    TreeNode entiteNode = new TreeNode();
    entiteNode.setTitle("Entité1");
    tree.add(entiteNode, entiteTitleNode);
    
    treeGrid.setData(tree);
    Please see the attachments for the display.

    I also tried to add

    Code:
    treeGrid.setIndentSize(20);
    and
    Code:
    treeGrid.setGroupIndentSize(20);
    But there is no effect on IE.

    Thanks for your aid!
    Attached Files

    #2
    Sorry, I don't have the problem on IE 6 but only on IE8. With Mozilla, Chrome, IE6, everything is fine, I have the indentation.

    Comment


      #3
      Hi, you found any solution on this?

      thanks

      Comment


        #4
        Use the IE7 emulation tag if you require strict mode support. Note strict mode is not recommend unless you are forced to use it (because IE keeps making non-backward compatible non-quite-standards-compliant changes in strict mode).

        <meta http-equiv="X-UA-Compatible" content="IE=7">

        Comment


          #5
          Thanks Isomorphic.
          This fixed the indentation, but having an offset when selecting (and opening) any tree element. I have to locate the cursor some pixels below the item.

          UPDATE: Same behavior in ListGrids

          Any suggestion?
          Thanks.
          Last edited by polesoft; 13 Jul 2010, 11:26.

          Comment


            #6
            As with any claim of a problem, create a test case. Obviously, this problem does not occur in the Showcase.

            Comment


              #7
              Seems that the problem was the height of the container with IE8.

              Code:
                        <table width="950" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td height="600" id="nameFieldContainer" align="center" valign="middle" bgcolor="#FFFFFF"></td>
                          </tr>
                        </table>
              I put it in 550 and the offset disappeared.

              Thanks

              Comment


                #8
                Hi,

                We are developing in GWT and most of the work has been done in GWT and we started using Smart GWT as the Widgets available in SmartGWT are pretty cool!. We are embedding Smart GET components in GWT containers along with other GWT components.

                The need to force IE to use IE7 standards mode is a big limitation as all other standard GWT components work in IE8 standards mode and we want to use IE8 standards mode because of the advantages it has.

                In order to work around this issue we are planning to render SmartGWT components inside an IFrame which kind of takes away the real nice integration of SmartGWT components with other GWT components.

                Are there any plans to make SmartGWT work in IE8 standards mode in the immediate future?

                Thanks

                Comment


                  #9
                  Whatever you do, do not introduce frames. Huge mistake.

                  If you are interested in accelerating support for Microsoft Standards Mode in IE8, consider Feature Sponsorship.

                  Comment


                    #10
                    I had the same problem too, and I find out a way to solve it.

                    The google's eclipse plugin generate the html file with

                    <!doctype html>

                    and when I change it to

                    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

                    it works fine now.

                    Comment


                      #11
                      Hi,

                      Any other way to fix it in IE8? I wouldn't put in IE7 emulation, as IE9 is coming.
                      I believe, TS provided enough test case for it.

                      Thank you.

                      Comment


                        #12
                        IE9 coming is exactly why you want to put in IE7 emulation. It's a major rework and it's being rushed, so expect it to have bugs in it's new mode.

                        Comment

                        Working...
                        X