Skip to content
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

fix(menu): fix z-index issue #7462

Closed

Conversation

michaelgeorgeattard
Copy link

@michaelgeorgeattard michaelgeorgeattard commented Jul 29, 2016

Short description of what this resolves:

When setRoot is called with options.direction === "back" (default), the zIndex of the view is reduced by 1. When the zIndex reaches -1, this is reset to 100.

However a zIndex of 0 breaks the application by hiding the view.

Can be replicated on http://ionicframework.com/docs/v2/components/#menus.

Changes proposed in this pull request:

  • Z-index should be reset when it's less than 1 instead of less than 0.

Ionic Version: 2.x

zindex bug

@brandyscarney
Copy link
Member

I'm not able to reproduce this in the demo in the docs. Are you still seeing this issue?

@michaelgeorgeattard
Copy link
Author

michaelgeorgeattard commented Aug 5, 2016

Yes I just replicated on Chrome 52 with an uncached version of the docs.

@michaelgeorgeattard
Copy link
Author

michaelgeorgeattard commented Aug 8, 2016

Replicated on Firefox 47.0.1 (Windows 7).

Steps:

  • Click on Toggle Menu to open menu.
  • Click on Home.
  • Repeat steps above for ~100 times until z-index is 0 and page breaks.

@manucorporat manucorporat self-assigned this Aug 18, 2016
@michaelgeorgeattard
Copy link
Author

Any updates on this please?

@jgw96
Copy link
Contributor

jgw96 commented Sep 8, 2016

Hello @michaelgeorgeattard Unfortunately we cannot seem to be able to reproduce on Chrome 53 (the latest stable) or firefox. If you could find a way to be able to reproduce this consistently in the first few times the menu is opened that would be great! Thanks!

@MiniGab
Copy link

MiniGab commented Sep 12, 2016

@jgw96 I was able to reproduce the bug using Chrome 53.

I made a recording : https://youtu.be/OgcEcHI6g80

You can start the video at 1 minute.

@jgw96
Copy link
Contributor

jgw96 commented Sep 13, 2016

@MiniGab Thanks for the video! After analyzing this more it seems that this is caused by a race condition that is being solved here. Because of this I will be closing this PR for now. Thanks for using Ionic!

@jgw96 jgw96 closed this Sep 13, 2016
@manucorporat
Copy link
Contributor

@jgw96 it might not be the same error, in the video the content is the one that gets black.

I think the bug reported by @michaelgeorgeattard is not the same reported by @MiniGab

@manucorporat manucorporat reopened this Sep 13, 2016
@manucorporat
Copy link
Contributor

This bug was already fixed in RC0. z-index never gets to 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants