diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2009-02-23 10:31:20 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2009-02-23 10:31:20 +0000 |
commit | 3a7e792938264c60e069deec3d28d0f9d9fce1bd (patch) | |
tree | f87d55f9b0dd4ae89f75f6bf2ed1e2902fc733b1 /src/com | |
parent | ea03e71556fd45bfb1e59fd8870b7c80e6f82110 (diff) | |
download | vaadin-framework-3a7e792938264c60e069deec3d28d0f9d9fce1bd.tar.gz vaadin-framework-3a7e792938264c60e069deec3d28d0f9d9fce1bd.zip |
server side sanity check for #2607
svn changeset:6936/svn branch:trunk
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/itmill/toolkit/ui/Table.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/ui/Table.java b/src/com/itmill/toolkit/ui/Table.java index 2b528780ca..6588fe1fe5 100644 --- a/src/com/itmill/toolkit/ui/Table.java +++ b/src/com/itmill/toolkit/ui/Table.java @@ -1935,6 +1935,14 @@ public class Table extends AbstractSelect implements Action.Container, int end = cells[0].length; if (reqRowsToPaint != -1) { end = start + reqRowsToPaint; + // Safari 3.1 sends invalid request sometimes. Cannot reproduce this + // with recent webkit. check for valid value and fallback to send + // rows to the end of buffer. + // TODO replace this with a client side workaround (this causes an + // empty screen). See #2607 + if (end > cells[0].length) { + end = cells[0].length; + } } // sanity check if (lastToBeRenderedInClient != -1 && lastToBeRenderedInClient < end) { |