Permalink
Browse files

add pull-to-refresh-container

  • Loading branch information...
1 parent f6e1134 commit 840cc0b91694aeb239ef85a5a225377d13e4a8db @lihongxun945 committed Mar 28, 2016
@@ -137,4 +137,6 @@ <h3 class="component-title">Destroy/Disable Pull To Refresh</h3>
$.initPullToRefresh(ptrContent)
{% endhighlight %}
+<p>See <code>demos</code> for how to use pull to refresh with tabs.</p>
+
</article>
@@ -17,7 +17,7 @@ <h1 class="title">Pull to refresh In Tabs</h1>
<a href="#tab3" class="tab-link button">Girls</a>
</div>
- <div class="tabs">
+ <div class="tabs pull-to-refresh-container">
<div id="tab1" class="tab active pull-to-refresh-content infinite-scroll">
<div class="pull-to-refresh-layer">
<div class="preloader"></div>
@@ -33,6 +33,14 @@
}
}
+.pull-to-refresh-container {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ height: 100%;
+}
.pull-to-refresh-content {
transform: translate3d(0, 0, 0);
position: absolute;
View
@@ -1,11 +1,6 @@
/* === Tabs === */
.tabs {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- height: 100%;
+
.tab {
display: none;
}

0 comments on commit 840cc0b

Please sign in to comment.