mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(scrollView): fix null pointer exception on scrollbar
This commit is contained in:
@@ -990,7 +990,7 @@ ionic.views.Scroll = ionic.views.View.inherit({
|
||||
}
|
||||
if (height !== self.__indicatorY.size) {
|
||||
ionic.requestAnimationFrame(function(){
|
||||
self.__indicatorY.indicator.style.height = height + 'px';
|
||||
self.__indicatorY && (self.__indicatorY.indicator.style.height = height + 'px');
|
||||
});
|
||||
}
|
||||
self.__indicatorY.size = height;
|
||||
|
||||
Reference in New Issue
Block a user