Skip to content

bug: ion-content with collapsable large title scroll height issue #21940

Closed

Description

@kevinboosten

Bug Report

Ionic version:

[ ] 4.x
[x] 5.x

platform
iOS

Current behavior:

An Ionic application with a collapsable large title can cause scroll issues. So the user can not scroll all the way down on the page.

This only happens on the first render. When you switch back and forth between tabs, or cause a repaint in a different way, the height of the scrollable content will be correct.

Probably related to: #21351

Expected behavior:

The tabbar should not overlap the content / height of the ion-content should be correct.

Steps to reproduce:

  1. run demo app
  2. scroll down. Last ion-card should not be completely visible
  3. select tab 2
  4. select tab 1. Last ion-card should now be completely visible.

Related code:

A sample application via GitHub
Demo repository: Boosten/ionic-content-overlap-demo

Mark the scrollbar position and the bounce effect:
alt

Other information:

  • Can not completely determine where the issue is actually bound to. But from what I see I've got the impression that it has something to do with the shadom dom part of ion-content:
    image
    Because this is the only place where I can see differences in computed CSS properties.

Ionic info:

Ionic:

   Ionic CLI                     : 6.11.0 (/Users/kevinboosten/.nvm/versions/node/v10.16.2/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.3.1
   @angular-devkit/build-angular : 0.1000.6
   @angular-devkit/schematics    : 10.0.6
   @angular/cli                  : 10.0.6
   @ionic/angular-toolkit        : 2.3.1

Capacitor:

   Capacitor CLI   : 2.4.0
   @capacitor/core : 2.4.0

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v10.16.2 (/Users/kevinboosten/.nvm/versions/node/v10.16.2/bin/node)
   npm    : 6.9.0
   OS     : macOS Catalina```

Activity

  1. liamdebeasi commented on Aug 21, 2020

    @liamdebeasi
    Contributor

    Thanks for the issue. I am going to close this as a duplicate of #20614.

  2. kevinboosten commented on Aug 23, 2020

    @kevinboosten
    Author

    @liamdebeasi ah, no problem! I searched and read a lot of issues, but completely overlooked that one somehow.

    #21351 is also related I guess?

  3. ionitron-bot commented on Sep 22, 2020

    @ionitron-bot

    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.

  4. locked and limited conversation to collaborators on Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions