Skip to content

Commit

Permalink
style(ionRefresher): make pulling text display:block
Browse files Browse the repository at this point in the history
Addresses #909
  • Loading branch information
ajoslin committed Mar 26, 2014
1 parent 40e50e0 commit c7baba5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/ext/angular/src/directive/ionicContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ function($timeout, $controller, $ionicBind) {
'<div class="scroll-refresher">' +
'<div class="ionic-refresher-content">' +
'<i class="icon {{pullingIcon}} icon-pulling"></i>' +
'<span class="icon-pulling" ng-bind-html="pullingText"></span>' +
'<div class="icon-pulling pulling-text" ng-bind-html="pullingText"></div>' +
'<i class="icon {{refreshingIcon}} icon-refreshing"></i>' +
'<span class="icon-refreshing" ng-bind-html="refreshingText"></span>' +
'<div class="icon-refreshing refreshing-text" ng-bind-html="refreshingText"></div>' +
'</div>' +
'</div>',
compile: function($element, $attrs) {
Expand Down
4 changes: 2 additions & 2 deletions js/ext/angular/test/directive/ionicRefresher.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ describe('ionRefresher directive', function() {
});
it('should allow pullingText', function() {
var el = setup('pulling-text="{{2+2}} <b>some</b> text"');
expect(el[0].querySelector('span.icon-pulling').innerHTML).toBe('4 <b>some</b> text');
expect(el[0].querySelector('.pulling-text').innerHTML).toBe('4 <b>some</b> text');
});
it('should allow refreshingText', function() {
var el = setup('refreshing-text="{{3+2}} <b>text</b>"');
expect(el[0].querySelector('span.icon-refreshing').innerHTML).toBe('5 <b>text</b>');
expect(el[0].querySelector('.refreshing-text').innerHTML).toBe('5 <b>text</b>');
});

});

0 comments on commit c7baba5

Please sign in to comment.