Ionic and angularjs Cannot read property 'scrollWidth' of null -
i have following problem. have 2 same list views, directives inside (i use angularjs). 1 of them runs without issues, other 1 throws following error:
typeerror: cannot read property 'scrollwidth' of null @ object.ionic.views.scroll.ionic.views.view.inherit.initialize.options.getcontentwidth (ionic.bundle.js:4081) @ ionic.views.scroll.ionic.views.view.inherit.resize (ionic.bundle.js:4835) @ ionic.views.scroll.ionic.views.view.inherit.run (ionic.bundle.js:4147) @ ionic.bundle.js:39888 @ ionic.bundle.js:21929 @ completeoutstandingrequest (ionic.bundle.js:12022) @ ionic.bundle.js:12330ionic.bundle.js:17696 (anonymous function)ionic.bundle.js:14989 $getionic.bundle.js:21932 (anonymous function)ionic.bundle.js:12022 completeoutstandingrequestionic.bundle.js:12330 (anonymous function)
my code pretty long, not posting yet - if there need so, :)
hint: i've tested app on phone, , seems cant scroll on error occurs. suggestions?
thanks
ok, figured out. didnt have div in ion-scroll. :)
Comments
Post a Comment