ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: Nightly - overflow-scroll="true" doesn't work on a view in standard sidemenu project.

Open chrisciszak opened this issue 11 years ago • 19 comments

Type: bug

Platform: android 4.4 webview

Overflow-scroll="true" on ion-content within a view is not working on Android 4.4 when using sidemenu project. This problem doesn't occur for beta 14 and cannot be repeated in desktop browser.

To repeat:

  1. Ionic start myApp sidemenu
  2. Add overflow-scroll="true" in ion-content for one of the views ie 'Browse'. Add more content.
  3. Run on android 4.4, bum scrolling not working in 'Browse' view.

This is a showstopper.

chrisciszak avatar Mar 07 '15 13:03 chrisciszak

Any update on this issue?

chrisciszak avatar Mar 09 '15 22:03 chrisciszak

+1, this also happens on iOS.

Koosmann avatar Mar 10 '15 01:03 Koosmann

my <ion-content>'s stopped overflow-scrolling pretty much everywhere I'm using them, in-browser or on-device. Content is simply truncated.

xml avatar Mar 10 '15 04:03 xml

Check 6e149eef9bf5fbee454448f6cfa6f0ea9cce60d3. It put an overflow:hidden; on .pane. Removing that restores the scroll behavior from 0.9.27.

xml avatar Mar 10 '15 05:03 xml

I want to avoid hacking as much as I can, even simple changes. Ionic its a serious company so I believe they will address this point ASAP. Its so easy to repeat, yet it stops us from upgrading, not even mentioning people who will start from 1.0 version and be surprised with the newest 'stable' version. On 10 Mar 2015 05:23, "Christian Lilley" [email protected] wrote:

Check 6e149ee https://github.com/driftyco/ionic/commit/6e149eef9bf5fbee454448f6cfa6f0ea9cce60d3. It put an overflow:hidden; on .pane. Removing that restores the scroll behavior from 0.9.27.

— Reply to this email directly or view it on GitHub https://github.com/driftyco/ionic/issues/3251#issuecomment-77997753.

chrisciszak avatar Mar 10 '15 08:03 chrisciszak

Well, in the short-term you can just use an override in your own CSS without hacking the ionic file:

.pane {
    overflow-y: scroll;
}

xml avatar Mar 10 '15 08:03 xml

just wrote this fix tonight: add the following if-statement around line 1786 in ionic.bundle.js (RC1), like this:

if (ev.direction != 'up' && ev.direction != 'down') {
    ev.srcEvent.preventDefault();
}

cyptus avatar Mar 10 '15 09:03 cyptus

Note: when this happens in iOS, it's related to #3267

perrygovier avatar Mar 11 '15 22:03 perrygovier

Quick update, this is not resolved in rc1.01.

Also

.pane {
    overflow-y: scroll;
}

does not solve the problem.

@cyptus's workaround solves the problem...

@perrygovier can you confirm when you plan to resolve this one?

Thanks

chrisciszak avatar Mar 22 '15 18:03 chrisciszak

cciszak

http://miyonline.net/foreks

22.03.2015, 21:09, "cciszak" [email protected]:Quick update, this is not resolved in rc1.01.

Also

.pane { overflow-y: scroll; }

does not solve the problem.

However, what I noticed is that, when running on a device, the scrollbar seems to think that there is nothing to scroll, although the content is still available to scroll. does it ring a bell?

—Reply to this email directly or .

Fayozjon avatar Mar 24 '15 18:03 Fayozjon

Thank you cyptus! This solves the issue. I was banging my head for awhile on this one.

lgrube3 avatar Jun 08 '15 20:06 lgrube3

Hello! Are you all still having this issue with the latest version of Ionic (ionic 1.2.4)?

jgw96 avatar Apr 12 '16 18:04 jgw96

I have Ionic version 1.7.14 and when I created my app and there is login screen and when rotating device to landscape then scroll not working in this "login" view. I also disabled navbar in this view but this is not the issue. If I just comment my Login view code out and copy-paste some another view code there where landscape scrolling works then it works in login screen as well. If I change overflow-scroll="true" > overflow-scroll="false" then I can drag to down but it jumps to up back when I release my finger. So if overflow-scroll is disabled then can drag but cant scroll.

Pretty nice party blocker. :(

krigulson avatar Apr 13 '16 06:04 krigulson

+1 for a fix to this problem.

fariazz avatar Jun 09 '16 03:06 fariazz

+1

william-beange-hs avatar Jun 22 '16 20:06 william-beange-hs

Having the same issue using tabs. It looks like there is a fixed height that you can scroll within ion-content, even though the height is set to auto.

Here is my html structure:

<ion-pane>
  <div>
    <md-tabs>
      <md-tab>
        <ion-view>
          <ion-content>
            <ion-list>

I'll only get about 20 of my list items in my scrollable area, theres about 40 items in my dom that I can't get to. The above css hack doesn't work in my case. This is killing me.

+1 for this issue in 2.1.18

weldermarcosxd avatar Jan 09 '17 23:01 weldermarcosxd

This issue was moved to driftyco/ionic-v1#5

jgw96 avatar Jan 13 '17 20:01 jgw96

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[bot] avatar Sep 05 '18 02:09 ionitron-bot[bot]