aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAleksi Hietanen <aleksi@vaadin.com>2017-05-05 11:02:05 +0300
committerHenri Sara <henri.sara@gmail.com>2017-05-05 11:02:05 +0300
commitf10c0dcc7ebbafccbf0e037432dc2c75949e8e67 (patch)
tree9bc63888a44a4a89a4ab3a6ec21f10eda18881ab /client
parente06c0940b417cb1e6431f86dcf77e97ef8da4835 (diff)
downloadvaadin-framework-f10c0dcc7ebbafccbf0e037432dc2c75949e8e67.tar.gz
vaadin-framework-f10c0dcc7ebbafccbf0e037432dc2c75949e8e67.zip
Allow Escalator.setHeightByRows to accept zero as a valid argument (#9244)
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/widgets/Escalator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/widgets/Escalator.java b/client/src/main/java/com/vaadin/client/widgets/Escalator.java
index d85dd7054b..7d2ca986a7 100644
--- a/client/src/main/java/com/vaadin/client/widgets/Escalator.java
+++ b/client/src/main/java/com/vaadin/client/widgets/Escalator.java
@@ -6461,7 +6461,7 @@ public class Escalator extends Widget
* @see #setHeightMode(HeightMode)
*/
public void setHeightByRows(double rows) throws IllegalArgumentException {
- if (rows <= 0) {
+ if (rows < 0) {
throw new IllegalArgumentException(
"The number of rows must be a positive number.");
} else if (Double.isInfinite(rows)) {