From 8759f64f61b8ba437dc212a4acd096d474310f3b Mon Sep 17 00:00:00 2001 From: Andrew Joslin Date: Thu, 8 May 2014 07:36:18 -0600 Subject: [PATCH] docs(collectionRepeat): add note about ng-show/ng-hide --- js/angular/directive/collectionRepeat.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/angular/directive/collectionRepeat.js b/js/angular/directive/collectionRepeat.js index 70d57354cd..15069ef3c9 100644 --- a/js/angular/directive/collectionRepeat.js +++ b/js/angular/directive/collectionRepeat.js @@ -30,6 +30,7 @@ * 6. Each collection-repeat list will take up all of its parent scrollView's space. * If you wish to have multiple lists on one page, put each list within its own * {@link ionic.directive:ionScroll ionScroll} container. + * 7. You should not use the ng-show and ng-hide directives on your ion-content/ion-scroll elements that have a collection-repeat inside. ng-show and ng-hide apply the `display: none` css rule to the content's style, causing the scrollView to read the width and height of the content as 0. Resultingly, collection-repeat will render elements that have just been un-hidden incorrectly. * * * @usage