Announcement

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

    Display Issues with IE10/<!doctype html>

    Hi,
    I'm having some display issues with IE10 resp. using <!DOCTYPE HTML>

    Until now we've used <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> in the HTML bootstrap file without major problems throughout all browsers.
    But with IE 10 this breaks major parts of the layout (see ie10doctype4.png for an example. These issues can also be seen in most examples in the live Showcase).

    To fix this I tried to use <!DOCTYPE HTML>. This apparently fixed some issues for IE10 (ie10doctypeHTML.png) but introduced new ones in FF and Chrome(ff20doctypeHTML.png. Buttons one,two,three and five are cut off at the bottom and the MenuItems have a margin at the bottom). Also some(not all) self styled Grids behave strange in all browsers. E.g. the cell height changes by 1 or 2 pixels when hovering over. I guess there are also issues with other widgets, I didn't check all.

    Also the whole application gets slower when using this doctype.

    SmartGWT Version: v8.2p_2013-04-08/PowerEdition Deployment (built 2013-04-08)
    GWT Version: 2.5.1

    Are these known issues and is there anything I can do to fix this(esp. the Grid issue)?

    Regards.


    Here's the code for the example in the attached screenshots:
    Code:
            DynamicForm form = new DynamicForm();
            SelectItem selItem = new SelectItem();
            selItem.setTitle("SelectItem");
            selItem.setValue("1");
            form.setFields(selItem);
            addMember(form);
    
            DynamicForm form2 = new DynamicForm();
            form2.setNumCols(3);
            form2.setAutoWidth();
            ButtonItem btn1 = new ButtonItem("one");
            btn1.setStartRow(false);
            btn1.setEndRow(false);
            ButtonItem btn2 = new ButtonItem("two");
            btn2.setStartRow(false);
            btn2.setEndRow(false);
            ButtonItem btn3 = new ButtonItem("three");
            btn3.setStartRow(false);
            btn3.setEndRow(false);
            form2.setFields(btn1, btn2, btn3);
            addMember(form2);
    
            Button btn4 = new Button("four");
            addMember(btn4);
            IButton btn5 = new IButton("five");
            addMember(btn5);
    
            Window window = new Window();
            window.setSize("100", "100");
            addMember(window);
    
            ToolStrip toolStrip = new ToolStrip();
            Menu menu1 = new Menu();
            MenuItem mItem1 = new MenuItem("Item1");
            MenuItem mItem2 = new MenuItem("Item2");
            MenuItem mItem3 = new MenuItem("Item3");
            menu1.addItem(mItem1);
            menu1.addItem(mItem2);
            menu1.addItem(mItem3);
            toolStrip.addMenuButton(new ToolStripMenuButton("Menu", menu1));
    
            addMember(toolStrip);
    Attached Files

    #2
    Update to 8.3 or 9.0.

    Comment


      #3
      I've tested SmartGWT 4.0d and 3.1p (SNAPSHOT_v9.0d_2013-04-08/PowerEdition Deployment (built 2013-04-08) and v8.3p_2013-04-09/PowerEdition Deployment (built 2013-04-09)).
      3.1p seems to work better than 4.0d, the Buttons don't get cut off and the menus and windows look better(not as good and consistent across browsers as with 3.0 but ok), but I'm still getting other display issues and inconsistecies across different browsers. E.g. IButtons and IMenuItems are only rendered properly in IE when I have set the setSrc() property. FF and Chrome just render the normal Button (see screenshots). The grid issue is also still the same.
      Attached Files

      Comment


        #4
        We'd recommend very carefully cleaning out the cache and inspecting your project for other possible stale resources. If there were obvious cosmetic issues like these, we'd be flooded with reports.

        Comment

        Working...
        X