diff options
author | Johannes Dahlström <johannes.dahlstrom@vaadin.com> | 2012-07-26 08:51:23 +0000 |
---|---|---|
committer | Johannes Dahlström <johannes.dahlstrom@vaadin.com> | 2012-07-26 08:51:23 +0000 |
commit | 07ec6a6db41fb5059b1c2ad556de8b7b59f08b10 (patch) | |
tree | 2797c5d1f5d9665a8403559a5d389656225b6354 /src/com | |
parent | b0004167abaa8874f94556da83cb6d0aa0b5e3e6 (diff) | |
download | vaadin-framework-07ec6a6db41fb5059b1c2ad556de8b7b59f08b10.tar.gz vaadin-framework-07ec6a6db41fb5059b1c2ad556de8b7b59f08b10.zip |
Reverted #7036 patch, will write a better one
svn changeset:24026/svn branch:6.8
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextArea.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextArea.java b/src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextArea.java index 54a8ff6ad6..bf0a423474 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextArea.java +++ b/src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextArea.java @@ -34,8 +34,6 @@ import com.vaadin.terminal.gwt.client.ui.Field; import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler; import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.BeforeShortcutActionListener; import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner; -import com.vaadin.terminal.gwt.client.ui.TouchScrollDelegate; -import com.vaadin.terminal.gwt.client.ui.TouchScrollDelegate.TouchScrollHandler; /** * This class implements a basic client side rich text editor component. @@ -83,8 +81,6 @@ public class VRichTextArea extends Composite implements Paintable, Field, private boolean readOnly = false; - private TouchScrollHandler touchScrollHandler = null; - public VRichTextArea() { createRTAComponents(); fp.add(formatter); @@ -92,6 +88,7 @@ public class VRichTextArea extends Composite implements Paintable, Field, initWidget(fp); setStyleName(CLASSNAME); + } private void createRTAComponents() { @@ -123,18 +120,10 @@ public class VRichTextArea extends Composite implements Paintable, Field, } rta.setHTML(currentValue); fp.add(rta); - if (touchScrollHandler != null) { - touchScrollHandler.removeElement(fp.getElement()); - } } else { html.setHTML(currentValue); fp.remove(rta); fp.add(html); - if (touchScrollHandler == null) { - touchScrollHandler = TouchScrollDelegate - .enableTouchScrolling(this); - } - touchScrollHandler.addElement(fp.getElement()); } } |