Skip to content

Commit

Permalink
Patch for #413
Browse files Browse the repository at this point in the history
  • Loading branch information
wf9a5m75 committed Feb 24, 2015
1 parent cf706c7 commit a337a8b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/android/plugin/google/maps/MyPluginLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ public MyPluginLayout(CordovaWebView webView, Activity activity) {
scrollFrameLayout.addView(backgroundView);
scrollFrameLayout.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));

scrollView.setHorizontalScrollBarEnabled(false);
scrollView.setVerticalScrollBarEnabled(false);

this.touchableWrapper = new TouchableWrapper(this.context);

}
Expand Down Expand Up @@ -191,6 +194,9 @@ public void detachMyView() {
}

public void attachMyView(ViewGroup pluginView) {
scrollView.setHorizontalScrollBarEnabled(false);
scrollView.setVerticalScrollBarEnabled(false);

scrollView.scrollTo(webView.getScrollX(), webView.getScrollY());
if (myView == pluginView) {
return;
Expand All @@ -216,6 +222,9 @@ public void attachMyView(ViewGroup pluginView) {
this.addView(frontLayer);
root.addView(this);
mActivity.getWindow().getDecorView().requestFocus();

scrollView.setHorizontalScrollBarEnabled(true);
scrollView.setVerticalScrollBarEnabled(true);
}

public void setPageSize(int width, int height) {
Expand Down

0 comments on commit a337a8b

Please sign in to comment.