mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
Fixed #102
This commit is contained in:
7
js/ext/angular/src/directive/ionicContent.js
vendored
7
js/ext/angular/src/directive/ionicContent.js
vendored
@ -22,7 +22,8 @@ angular.module('ionic.ui.content', [])
|
||||
transclude: true,
|
||||
scope: {
|
||||
onRefresh: '&',
|
||||
onRefreshOpening: '&'
|
||||
onRefreshOpening: '&',
|
||||
scroll: '@'
|
||||
},
|
||||
compile: function(element, attr, transclude) {
|
||||
return function($scope, $element, $attr) {
|
||||
@ -43,7 +44,9 @@ angular.module('ionic.ui.content', [])
|
||||
}
|
||||
|
||||
// If they want plain overflows scrolling, add that as a class
|
||||
if(attr.overflowScroll === "true") {
|
||||
if($scope.scroll === "false") {
|
||||
// Do nothing for now
|
||||
} else if(attr.overflowScroll === "true") {
|
||||
c.addClass('overflow-scroll');
|
||||
} else {
|
||||
// Otherwise, supercharge this baby!
|
||||
|
||||
Reference in New Issue
Block a user