Conflicts:
	dist/js/ionic-angular.min.js
	dist/js/ionic.min.js
This commit is contained in:
Max Lynch
2014-01-13 12:10:30 -06:00
5 changed files with 24 additions and 14 deletions

View File

@@ -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;