On my app there is a panel that shows / hides when you click a button which takes up about 300px of the screen.
Inside this panel I have included an
ion-scroll. The problem is the content inside the
ion-scroll wont show unless I specifically give it height in px. But that shouldn’t be the case. The
ion-scroll should only take up the calculated height of it’s contents as the content inside this panel will get added or removed and the height should adjust accordingly.
<ion-content> <div class="myPanel" *ngIf="showPanel" style="max-height: 300px;"> <ion-scroll> Some content inside the ion-scroll </ion-scroll> </div> </ion-content>