Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.
This repository was archived by the owner on May 4, 2022. It is now read-only.

FABs (ion-fab) with attributes top edge appear under ion-header with devices using Chrome version 71 #919

Closed

Description

@neilbo

I'm submitting a ...
[x] bug report

Current behavior:

Go to https://ionicframework.com/docs/components/#fabs using Chrome version 71+,
The FABs that have attributes "top edge" are under the header in devices that use Chrome version 71+
Expected behavior:

The FABs should appear above the header
Steps to reproduce:

The quickest way to see this is to:
Go to Ionic docs for FAB https://ionicframework.com/docs/components/#fabs
Related code:

<ion-content>
<ion-fab top right edge>
  <button ion-fab color="primary">
    <ion-icon name="add"></ion-icon>
  </button>
</ion-fab>
<ion-content>

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
https://forum.ionicframework.com/t/ionic-fabs-ion-fab-under-header-since-chrome-71/150188

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.2.0
    Cordova Platforms  : android 6.4.0 browser 5.0.4 ios 4.5.5
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.9.2
    Node              : v8.11.1
    npm               : 6.1.0
    OS                : macOS High Sierra
    Xcode             : Xcode 10.1 Build version 10B61

Environment Variables:

    ANDROID_HOME : /Users/neil/Library/Android/sdk

Misc:

    backend : pro

Activity

  1. changed the title [-]FABs top under ion-header by default Chrome 71[/-] [+]FABs top edge appear under ion-header by default Chrome 71[/+] on Dec 13, 2018
  2. changed the title [-]FABs top edge appear under ion-header by default Chrome 71[/-] [+]FABs top edge appear under ion-header with devices using Chrome version 71[/+] on Dec 13, 2018
  3. changed the title [-]FABs top edge appear under ion-header with devices using Chrome version 71[/-] [+]FABs (ion-fab) with attributes top edge appear under ion-header with devices using Chrome version 71[/+] on Dec 13, 2018
  4. HenintsoaAdri commented on Dec 29, 2018

    @HenintsoaAdri

    Move ion-fab into ion-header and use bottom edge

  5. brassier commented on Jan 3, 2019

    @brassier

    While the suggestion by @HenintsoaAdri will work around the problem, I don't think that's the real solution here. The Ionic docs note putting the FABs in the content, and their docs also show this issue.

    Here's a link to a similar issue on the Ionic 4 project. That link has some more info about the cause of this behind the scenes.

  6. gscardovelli commented on Jan 9, 2019

    @gscardovelli

    Move ion-fab into ion-header and use bottom edge

    This worked for me

  7. neilbo commented on Jan 15, 2019

    @neilbo
    Author
  8. brassier commented on Jan 15, 2019

    @brassier

    The suggested fix in the other Ionic 4 issue I linked to above is to add this to the app.scss:

    ion-content {
      contain: size style;
    }
    

    It sounds like this will be the fix they eventually try to put back into Ionic 3 too. It requires a bit of regression testing, but that seemed to work for me.

  9. added a commit that references this issue on Jan 17, 2019
    f8e3cff
  10. neilbo commented on Jan 25, 2019

    @neilbo
    Author

    The suggested fix in the other Ionic 4 issue I linked to above is to add this to the app.scss:

    ion-content {
      contain: size style;
    }
    

    It sounds like this will be the fix they eventually try to put back into Ionic 3 too. It requires a bit of regression testing, but that seemed to work for me.

    Can confirm this works on my ionic 3 project. Thanks @brassier @brandyscarney

  11. brandyscarney commented on Jan 25, 2019

    @brandyscarney
    Member

    We're working to get the testing and release scripts back up and running on this repository but once we do we'll get this PR in: #942

    And release a new Ionic 3. 🙂 In the meantime please use that workaround, thank you!!

  12. added a commit that references this issue on Jan 29, 2019
    79c8d67
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