Skip to content

Native scrolling not working when embedded into ion-tabs #4891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cxcxcxcx opened this issue Jan 2, 2016 · 6 comments
Closed

Native scrolling not working when embedded into ion-tabs #4891

cxcxcxcx opened this issue Jan 2, 2016 · 6 comments
Milestone

Comments

@cxcxcxcx
Copy link

cxcxcxcx commented Jan 2, 2016

Reproducing examples here:
http://play.ionic.io/app/a20df0a8efe2

I put ion-content under ion-tab under ion-tabs.

When overflow-scroll=false, it works. but with overflow-scroll=true, it doesn't scroll.

However, it scrolls magically when I (erroneously) put a refresher before the ion-content, but it's not the correct way to run refresher so the refresher doesn't work. If use the refresher the correct way, it wouldn't work.

@mlynch
Copy link
Contributor

mlynch commented Jan 2, 2016

Okay, thanks, I see the issue. <ion-content> is erroneously getting the .pane class above which ionTap applies thinking it's a child ion-view directive subclass.

Will have a fix for this. One solution is to wrap the contents of your tab with <ion-view> for now. See the first tab here: http://play.ionic.io/app/951b007c86dc

@mlynch mlynch added this to the 1.2.3 milestone Jan 2, 2016
@oronbdd
Copy link

oronbdd commented Jan 3, 2016

Hi,

Facing the same issue in Galaxy S4, version 4.4.2
http://stackoverflow.com/questions/34579787/ionic-2-1-native-scrolling-not-working-with-ion-tabs

Thanks :)

@mlynch mlynch closed this as completed in 1f2178f Jan 3, 2016
@mlynch
Copy link
Contributor

mlynch commented Jan 3, 2016

Just fixed and released in 1.2.4. Thanks!

@linkito87
Copy link

Hi. I have the 1.2.4 version and still the issue.... When I refresh with the -livereload environment, the scroll rules well... But when I change the tab to antoher, and come back to the first tab, the scroll not works...
Only in version 1.1.1 this works fine... Anyone can help me?

This is the tab that the scroll not work:

<ion-view view-title="CUENTA" cache-view="false">
    <ion-content>
            <ion-list>
                <ion-item class="item-divider">
                    <p class="text-center">{{ data.session }}</p>
                </ion-item>
                <ion-toggle ng-model="data.modeOffline" ng-change="changeMode()" toggle-class="toggle-energized">MODO OFFLINE</ion-toggle>
                <ion-toggle ng-model="data.modePda" ng-change="changePDAMode()" toggle-class="toggle-energized">MODO PDA</ion-toggle>
                <ion-item class="item" ng-click="syncBBDD()">
                    <h2>SINCRONIZAR BBDD</h2>

                    <p>{{ data.lastsync }}</p>
                </ion-item>
                <ion-item class="item" ng-click="emptyBBDD()">
                    <h2>VACIAR BBDD</h2>

                    <p>Vacía la base de datos offline</p>
                </ion-item>
                <ion-item class="item item-text-wrap" ng-click="openZones()" ng-if="listZones" ng-controller="LoginCtrl">
                    <h2>CAMBIAR ZONAS</h2>

                    <p>{{ listZones }}</p>
                </ion-item>
                <ion-item class="item" ng-click="changeDeviceName()">
                    <h2>CAMBIAR NOMBRE</h2>

                    <p>{{ data.devicename }}</p>
                </ion-item>
            </ion-list>
            <button class="button button-block button-assertive" ng-click="doLogout()">Cerrar sesión</button>
    </ion-content>
</ion-view>

Thanks!

@rafialikhan
Copy link

Same issue with ionic 1.3.2. http://play.ionic.io/app/22901856f366 (forked for 1.3.2)

As experimented by @cxcxcxcx if we add overflow-scroll=false, then the scroll works, else if you add over-flow=scroll true, then it does not.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 3, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants