summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-10-03 19:27:14 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-10-03 19:27:14 -0400
commit43eaa42c6708c2d1280b94e09f91bcbf819fbbd3 (patch)
tree7e78a492fe4f4aed0a4dc9cd3cdc7a5ef9fc843a
parent387a71a9d6187d21bfb56d8ba1c118dd13e78be1 (diff)
ios scroll back tweak
Former-commit-id: 00ddb05c69686b1d5390df68171d428eff4e5462
-rw-r--r--www/external/ionic.scroll.sista.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/www/external/ionic.scroll.sista.js b/www/external/ionic.scroll.sista.js
index 598c7ca7..f8dd8143 100644
--- a/www/external/ionic.scroll.sista.js
+++ b/www/external/ionic.scroll.sista.js
@@ -221,7 +221,11 @@
translateHeaders(Math.min(headerEnd, headerY), duration);
//readjust top of ion-content
- contentStyle.top = Math.max(0, contentTop - y) + 'px';
+ var st = Math.max(0, contentTop - y);
+ if (isIos)
+ st+=20;
+
+ contentStyle.top = st + 'px';
}
/**
@@ -292,7 +296,6 @@
y = headerHeight;
}
-
//if we are at the bottom, animate the header/tabs back in
if (scrollView.getScrollMax().top - scrollTop <= contentTop) {
// console.log ("MAX TOP="+scrollView.getScrollMax().top+" SCROLL TOP:"+scrollTop+" CONTOP="+contentTop);