mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
style(ionRefresher): add padding-top if refreshing-text or pulling-text
Fixes #1269
This commit is contained in:
3
js/angular/directive/refresher.js
vendored
3
js/angular/directive/refresher.js
vendored
@@ -65,7 +65,8 @@ IonicModule
|
||||
require: '^$ionicScroll',
|
||||
template:
|
||||
'<div class="scroll-refresher">' +
|
||||
'<div class="ionic-refresher-content">' +
|
||||
'<div class="ionic-refresher-content" ' +
|
||||
'ng-class="{\'ionic-refresher-with-text\': pullingText || refreshingText}">' +
|
||||
'<i class="icon {{pullingIcon}} icon-pulling"></i>' +
|
||||
'<div class="text-pulling" ng-bind-html="pullingText"></div>' +
|
||||
'<i class="icon {{refreshingIcon}} icon-refreshing"></i>' +
|
||||
|
||||
@@ -182,6 +182,9 @@ body.grade-c {
|
||||
line-height: 16px;
|
||||
font-size: 16px;
|
||||
}
|
||||
&.ionic-refresher-with-text {
|
||||
bottom: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-refreshing,
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</a>
|
||||
</ion-header-bar>
|
||||
<ion-content>
|
||||
<ion-refresher on-refresh="onRefresh()"></ion-refresher>
|
||||
<ion-refresher on-refresh="onRefresh()" refreshing-text="Refreshing!"></ion-refresher>
|
||||
<div class="list">
|
||||
<div class="item"
|
||||
ng-click="alert(item)"
|
||||
|
||||
Reference in New Issue
Block a user