You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2021/04/04 13:21:58 UTC

[incubator-hop] branch master updated: Wrap methods that are not supported by RAP

This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hop.git


The following commit(s) were added to refs/heads/master by this push:
     new 8898685  Wrap methods that are not supported by RAP
     new 832545a  Merge pull request #729 from HiromuHota/HOP-2735
8898685 is described below

commit 8898685cfeb76d4f0107cddde31feac1f88943ed
Author: Hiromu Hota <hi...@gmail.com>
AuthorDate: Fri Apr 2 17:34:35 2021 -0700

    Wrap methods that are not supported by RAP
---
 .../java/org/apache/hop/ui/core/widget/ConditionEditor.java  | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/ui/src/main/java/org/apache/hop/ui/core/widget/ConditionEditor.java b/ui/src/main/java/org/apache/hop/ui/core/widget/ConditionEditor.java
index 3cbda26..8bd399d 100644
--- a/ui/src/main/java/org/apache/hop/ui/core/widget/ConditionEditor.java
+++ b/ui/src/main/java/org/apache/hop/ui/core/widget/ConditionEditor.java
@@ -1309,8 +1309,10 @@ public class ConditionEditor extends Canvas implements MouseMoveListener {
       // Set the bar's parameters...
       sbHorizontal.setMaximum(maxdrawn.width);
       sbHorizontal.setMinimum(0);
-      sbHorizontal.setPageIncrement(size_widget.width);
-      sbHorizontal.setIncrement(10);
+      if (!EnvironmentUtils.getInstance().isWeb()) {
+        sbHorizontal.setPageIncrement(size_widget.width);
+        sbHorizontal.setIncrement(10);
+      }
     }
 
     // Vertical scrollbar behavior
@@ -1325,8 +1327,10 @@ public class ConditionEditor extends Canvas implements MouseMoveListener {
       // Set the bar's parameters...
       sbVertical.setMaximum(maxdrawn.height);
       sbVertical.setMinimum(0);
-      sbVertical.setPageIncrement(size_widget.height);
-      sbVertical.setIncrement(10);
+      if (!EnvironmentUtils.getInstance().isWeb()) {
+        sbVertical.setPageIncrement(size_widget.height);
+        sbVertical.setIncrement(10);
+      }
     }
   }