Browse Source

fixed one negative argument (IE)

svn changeset:3203/svn branch:trunk
tags/6.7.0.beta1
Marc Englund 16 years ago
parent
commit
e23fd42555
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java

+ 5
- 2
src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java View File

@@ -1679,8 +1679,11 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
}

private void fixSpacers() {
DOM.setStyleAttribute(preSpacer, "height", getRowHeight()
* firstRendered + "px");
int prepx = getRowHeight() * firstRendered;
if (prepx < 0) {
prepx = 0;
}
DOM.setStyleAttribute(preSpacer, "height", prepx + "px");
int postpx = getRowHeight() * (totalRows - 1 - lastRendered);
if (postpx < 0) {
postpx = 0;

Loading…
Cancel
Save