mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Merge branch 'master' of https://github.com/driftyco/ionic
Conflicts: dist/js/ionic-angular.min.js dist/js/ionic.min.js
This commit is contained in:
11
js/ext/angular/src/directive/ionicContent.js
vendored
11
js/ext/angular/src/directive/ionicContent.js
vendored
@@ -47,16 +47,17 @@ angular.module('ionic.ui.content', ['ionic.ui.service'])
|
||||
if(attr.hasSubheader == "true") { element.addClass('has-subheader'); }
|
||||
if(attr.hasFooter == "true") { element.addClass('has-footer'); }
|
||||
if(attr.hasTabs == "true") { element.addClass('has-tabs'); }
|
||||
if(attr.padding == "true") {
|
||||
var scroll = element.find('.scroll');
|
||||
if(scroll.length) {
|
||||
scroll.addClass('padding');
|
||||
}
|
||||
}
|
||||
|
||||
return function link($scope, $element, $attr) {
|
||||
var clone, sc, sv,
|
||||
c = angular.element($element.children()[0]);
|
||||
|
||||
// if padding attribute is true, then add padding if it wasn't added to the .scroll
|
||||
if($scope.$eval($scope.padding) === true) {
|
||||
c.addClass('padding');
|
||||
}
|
||||
|
||||
if($scope.scroll === "false") {
|
||||
// No scrolling
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user