nikhilbchilwant / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
1 stars 1 forks source link

PagingScrollTable, IE: headerSpacer div obscures header, preventing resizing #313

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of gwt and gwt-incubator are you using?
GWT 1.7, Incubator 1.7 (1686, 22 Jun 2009) 

What OS and browser are you using?
IE6, IE7

Do you see this error in hosted mode, web mode, or both?
both

Hopefully using the test case you have generously provided, what steps will
reproduce the problem? 
1. create a table w/ resizable columns and a 1 row header
2. view the table in IE
3. attempt to resize a column

What is the expected output? What do you see instead?
Cannot resize column because the IE headerSpacer div obscures most of the
header, preventing interaction

Workaround if you have one:
Edit AbstractScrollTable.ImplIE6 and add visibility=hidden

    public Element createSpacer(FixedWidthFlexTable table, Element wrapper) {
      Element spacer = DOM.createDiv();
      spacer.getStyle().setPropertyPx("height", 1);
      spacer.getStyle().setPropertyPx("top", 1);
      spacer.getStyle().setProperty("position", "absolute");
      spacer.getStyle().setProperty("visibility", "hidden");
      if (!LocaleInfo.getCurrentLocale().isRTL()) {
        spacer.getStyle().setPropertyPx("left", 1);
        spacer.getStyle().setPropertyPx("width", 10000);
      }
      wrapper.appendChild(spacer);
      return spacer;
    }

Please provide any additional information below,  and thank you for taking
the time and effort to report this issue, as good issue reports are
critical for our quest to make GWT's new widgets and libraries shine.

IEDivHeight.html demonstrates the problem. View in IE. The first div is how
the table currently does it. The second div is w/ overflow: hidden. I went
w/ visibility=hidden for my workaround because the 1px high div can still
get in the way. 

Issue 66.png shows the problem in a real app (I edited the incubator source
to add a black border to the IE headerSpacer). 

Original issue reported on code.google.com by mat.ges...@gmail.com on 3 Oct 2009 at 8:47

Attachments: