Hello,
I am unable to scroll with the app I am working on. I’m new to Ionic Framework so I might be using it incorrectly.
When I try to scroll it just pulls the entire content up or down. It doesn’t scroll the specific slide. The following is the structure of one of the pages in my application.
I am wrapping the code below with Ion-Content but for some reason in the post it doesn’t show up.
ion-content id= "gamestatscont" class="iphoneWidth" has-header="true" has-footer="false" scroll="true">
ion-content>
I apologize if the code pasted is hard to read. I tried cleaning it up at a bit to make it more legible.
Thanks ahead of time!
Games Players Stats
<ion-slide-box class="sepcont" show-pager="false" on-slide-changed="slideChanged(index)" active-slide="activeSlide" disable-scroll="false"> <ion-slide> <div id="gameslide"> <div class="gameinfocont" > <p id="nextgamelbl">Next Game</p> <div class="gamesButton" ng-click="yell()">Full Schedule</div> <div class="gameinfo" ng-click="yell()"> <button class="button button-icon icon ion-chevron-right gameinfoarrow"></button> <p class="opponentname"></p> <p class="gamedate"></p> <p class="location"></p> </div> </div> <div class="gameinfocont"> <p id="prevgamelbl">Previous Game</p> <div class="gamesButton" ng-click="yell()">View All</div> <div class="gameinfo" ng-click="yell()"> <button class="button button-icon icon ion-chevron-right gameinfoarrow"></button> <p class="opponentname"></p> <p class="gamedate"></p> <p class="score"></p> </div> </div> <div id="recordstatsmsg"> <div id="rdmessagecont" ng-click="yell()"> <p>Want to record stats for this team?</p> <p>Tap here to get the stat keeping app.</p> </div>
</div> </div> </ion-slide> <ion-slide> <div class="list"> <a class="item" href="#" ng-repeat="player in players"> <p class="playersname">{{player.name}}</p> </a> </div> </ion-slide> <ion-slide>
<div id="mainStats"> <div id="gamestatsFilterDiv"> <select class="statsdropdown yeargamesdrop" ng-model="statsYear" ng-options="y.value as y.name for y in statsYears"></select> <select class="statsdropdown yeargamesdrop" ng-model="statsGame" ng-options="g.value as g.name for g in statsGames"></select> <select id="statsplayerdrop" class="statsdropdown" ng-model="statsPlayer" ng-options="p.value as p.name for p in statsPlayers"></select> </div> <!--<ion-scroll>--> <div id="gamestatsDropDiv">
<div class="statsbarcont" ng-click="expandStats('Averages')"> Season Averages <a class="PlusButton"> {{expandSignAvg}} </a> </div> <div ng-show="showAverage"> <div class="row oddrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row evenrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row oddrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row evenrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row oddrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row evenrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row oddrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div>
</div>
<div class="statsbarcont" ng-click="expandStats('Totals')"> Season Totals <a class="PlusButton" ng-click="expandStats('Totals')"> {{expandSignTot}} </a> </div> <div ng-show='showTotals'> <div class="row oddrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row evenrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row oddrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row evenrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row oddrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row evenrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row oddrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div>
</div>
<div class="statsbarcont" ng-click="expandStats('Graph')"> Points Graph </div> <div ng-show='showGraph'> <div class="row oddrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row evenrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row oddrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div> </div> <div class="row evenrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div>
</div> <div class="row oddrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div>
</div> <div class="row evenrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div>
</div> <div class="row oddrow"> <div class="col lblcol col-25"> <p class="statvalue"></p> </div>
</div>
</div>
</div> <!--</ion-scroll>--> </div>
</ion-slide>
</ion-slide-box>