You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/09/30 01:40:38 UTC
[1/2] git commit: Let CordovaView respect DisallowOverscroll
preference
Repository: cordova-wp8
Updated Branches:
refs/heads/master 7fdff991f -> 572b00fdf
Let CordovaView respect DisallowOverscroll preference
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/39d8b43b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/39d8b43b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/39d8b43b
Branch: refs/heads/master
Commit: 39d8b43b406fa19718aea6e75233a82e6711041a
Parents: 2e90a47
Author: Nadya Atanasova <na...@gmail.com>
Authored: Mon Sep 29 17:16:27 2014 +0300
Committer: Nadya Atanasova <na...@gmail.com>
Committed: Mon Sep 29 17:16:27 2014 +0300
----------------------------------------------------------------------
template/cordovalib/CordovaView.xaml.cs | 13 +++++++++++++
1 file changed, 13 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/39d8b43b/template/cordovalib/CordovaView.xaml.cs
----------------------------------------------------------------------
diff --git a/template/cordovalib/CordovaView.xaml.cs b/template/cordovalib/CordovaView.xaml.cs
index 0514aa6..5e790a3 100644
--- a/template/cordovalib/CordovaView.xaml.cs
+++ b/template/cordovalib/CordovaView.xaml.cs
@@ -196,6 +196,19 @@ namespace WPCordovaClassLib
Debug.WriteLine("Unable to parse BackgroundColor value '{0}'. Error: {1}", bgColor, ex.Message);
}
}
+
+ string disallowOverscroll = configHandler.GetPreference("disallowoverscroll");
+ if (!String.IsNullOrEmpty(disallowOverscroll))
+ {
+ try
+ {
+ this.DisableBouncyScrolling = bool.Parse(disallowOverscroll);
+ }
+ catch (Exception ex)
+ {
+ Debug.WriteLine("Unable to parse DisallowOverscroll value '{0}'. Error: {1}", disallowOverscroll, ex.Message);
+ }
+ }
}
/*
[2/2] git commit: Merge branch
'natanasova/respect-disallowoverscroll-preference' of
https://github.com/Icenium/cordova-wp8
Posted by pu...@apache.org.
Merge branch 'natanasova/respect-disallowoverscroll-preference' of https://github.com/Icenium/cordova-wp8
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/572b00fd
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/572b00fd
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/572b00fd
Branch: refs/heads/master
Commit: 572b00fdf715fd680ab940a1c9fe3f666a176280
Parents: 7fdff99 39d8b43
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Mon Sep 29 16:40:09 2014 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Mon Sep 29 16:40:09 2014 -0700
----------------------------------------------------------------------
template/cordovalib/CordovaView.xaml.cs | 13 +++++++++++++
1 file changed, 13 insertions(+)
----------------------------------------------------------------------