You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@paulstelzer Thanks! Apparently I needed to relaunch Chrome to update it, so I can now reproduce it in latest Chrome. This helps narrow the problem down!
Reacted by redwolf2, peterennis and Neil Chowdhury
Also note that this works fine in FireFox. Only seems to be a problem with Chrome 71.
I stink at CSS, but I attempted to break this down into a simpler example that shows something working in FireFox and not in Chrome, based on hunting and pecking the tons of styles going on in the Ionic app I have. A (semi-embarrassing) example is below. Again, this shows a fake FAB that appears normal in FireFox, which appears under a fake header in Chrome. It really seems like z-index is handled differently since the 999 z-index raises the FAB to the top in FF but not in Chrome. https://js-bjvaxt.stackblitz.io/
Of course there are hacks we could do to make this work again. I'm just not convinced I have a "proper" fix in mind.
A bit more info. In my testing it looks like the following style on ion-content may be the key trigger point that Chrome and FF are treating differently:
contain: layout size style;
Disabling that style on Chrome 71 makes the FAB on top again.
Chrome added it in 52, so while it may have not been working the same from a UI perspective it was still doing something. 🙂We will check it against all of our tests though.
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.
Activity
brandyscarney commentedon Dec 17, 2018
You need to have
slot="fixed"on theion-fabif you'd like it to position it over the content & toolbar. Please see the usage here: https://beta.ionicframework.com/docs/api/fab. Thanks!joel-daros commentedon Dec 17, 2018
@brandyscarney, please reopen:
I'm tried adding
slot="fixed"but the problem keeps:<ion-fab vertical="top" horizontal="end" slot="fixed" edge>I notice the problem occurs when I use
edgedirective to make the button overlapping the head.I also update the example provided in the first post.
paulstelzer commentedon Dec 17, 2018
@brandyscarney @MrSparklle is right. In the current state it's not working.
It's not header only, footer, too
beta.17 (ionic docs):

current master (http://localhost:3333/src/components/fab/test/preview):

brandyscarney commentedon Dec 17, 2018
I'm not sure what's going on here. I am not seeing the same thing on the preview test (on master after running a fresh
npm i):I also can't reproduce it in a codepen using
4.0.0-beta.19: https://codepen.io/brandyscarney/pen/KbgKNwI was only able to reproduce the problem when
slot="fixed"was missing, but adding it fixed it.Is there a specific browser this is happening on or is it on several?
paulstelzer commentedon Dec 17, 2018
@brandyscarney I tested your codepen. It has the same behaviour. It's behind the toolbar (using Chrome 71)
I downgraded to beta.17 / beta,16, but there it's still behind the toolbar. Maybe Chromium has a change?
brandyscarney commentedon Dec 17, 2018
@paulstelzer Thanks! Apparently I needed to relaunch Chrome to update it, so I can now reproduce it in latest Chrome. This helps narrow the problem down!
brassier commentedon Dec 18, 2018
For more info, this is also appearing in Ionic 3.9.2. It is also seen in the Ionic Docs.
brassier commentedon Dec 18, 2018
Also note that this works fine in FireFox. Only seems to be a problem with Chrome 71.
I stink at CSS, but I attempted to break this down into a simpler example that shows something working in FireFox and not in Chrome, based on hunting and pecking the tons of styles going on in the Ionic app I have. A (semi-embarrassing) example is below. Again, this shows a fake FAB that appears normal in FireFox, which appears under a fake header in Chrome. It really seems like z-index is handled differently since the 999 z-index raises the FAB to the top in FF but not in Chrome.
https://js-bjvaxt.stackblitz.io/
Of course there are hacks we could do to make this work again. I'm just not convinced I have a "proper" fix in mind.
brassier commentedon Dec 18, 2018
A bit more info. In my testing it looks like the following style on
ion-contentmay be the key trigger point that Chrome and FF are treating differently:Disabling that style on Chrome 71 makes the FAB on top again.
12 remaining items
brandyscarney commentedon Jan 9, 2019
Chrome added it in 52, so while it may have not been working the same from a UI perspective it was still doing something. 🙂We will check it against all of our tests though.
https://developers.google.com/web/updates/2016/06/css-containment
https://www.chromestatus.com/features/6522186978295808
fix(fab): remove layout contain from content
DarkAnivia commentedon Jan 11, 2019
Thank you, we will try aswell
fix(fab): remove layout contain from content (#17048)
fix(content): remove layout contain to fix fab behind toolbar
fix(content): remove layout contain to fix fab behind toolbar (#942)
redwolf2 commentedon Feb 12, 2019
It's fixed for Ionic 4, but Ionic 3 still has this problem.
brandyscarney commentedon Feb 12, 2019
@redwolf2 The fix should've been in the
3.9.3release, are you using this version? https://github.com/ionic-team/ionic-v3/releases/tag/v3.9.3redwolf2 commentedon Feb 12, 2019
@brandyscarney Thx, I will check that out.
Frotty commentedon Mar 1, 2019
Hi, my issue #17130 has been locked.
I still have this exact problem, nothing has been fixed.
brandyscarney commentedon Mar 1, 2019
@Frotty Could you please open a new issue with your current Ionic version and steps to reproduce please? Thank you!
ionitron-bot commentedon Mar 31, 2019
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.