Skip to content

Commit f4f36f8

Browse files
committed
Fixed #163
1 parent 915f98b commit f4f36f8

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

dist/css/themes/ionic-ios7.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@charset "UTF-8";
12
/**
23
* Nav controllers and header bar animations
34
*/

dist/js/ionic-angular.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24592,8 +24592,10 @@ angular.module('ionic.ui.content', [])
2459224592
return function($scope, $element, $attr) {
2459324593
var c = $element.eq(0);
2459424594

24595-
if(attr.padding) {
24596-
c.addClass('padding');
24595+
var scroll = $element[0].querySelector('.scroll');
24596+
24597+
if(scroll && attr.padding) {
24598+
scroll.classList.add('padding');
2459724599
}
2459824600

2459924601
if(attr.hasHeader == "true") {

js/ext/angular/src/directive/ionicContent.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ angular.module('ionic.ui.content', [])
3434
return function($scope, $element, $attr) {
3535
var c = $element.eq(0);
3636

37-
if(attr.padding) {
38-
c.addClass('padding');
37+
var scroll = $element[0].querySelector('.scroll');
38+
39+
if(scroll && attr.padding) {
40+
scroll.classList.add('padding');
3941
}
4042

4143
if(attr.hasHeader == "true") {

0 commit comments

Comments
 (0)