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

Map not displaying on tabs template #7157

Closed
guillenotfound opened this issue Jul 1, 2016 · 9 comments
Closed

Map not displaying on tabs template #7157

guillenotfound opened this issue Jul 1, 2016 · 9 comments

Comments

@guillenotfound
Copy link
Contributor

Short description of the problem:

On beta.9 when I change to Map tab, I can see the map without any issue but since I upgrade to beta.10 the content doesn't change, after some investigation I have found that the HomePage keeps having show-page as class, if I change it to hide-page I'm able to see the map like I would do on beta.9

What behavior are you expecting?

See the map after changing tab.

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

Beta 9: http://imgur.com/ZfbuMsx
Beta 10: http://imgur.com/KNbUv6Z

Which Ionic Version? 1.x or 2.x
2.x Beta10

Plunker that shows an example of your issue

https://github.com/ZiFFeL1992/ionic2-google-maps

You have 2 branches each one with one beta.

Run ionic info from terminal/cmd prompt: (paste output below)

Your system information:

Cordova CLI: 6.2.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.30
Ionic App Lib Version: 2.0.0-beta.16
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.3.0
Xcode version: Xcode 8.0 Build version 8S128d
@CardosoGit
Copy link

Is a bug it? Still waiting...

@skaman
Copy link

skaman commented Jul 2, 2016

same problem here. I also had to add this to nav-decor class, otherwise map the background was black.
.nav-decor { background-color: rgba(0, 0, 0, 0) !important; }

I can confirm that with tabs, i see the show-page class instead of hide-page for hidden pages

@skaman
Copy link

skaman commented Jul 2, 2016

For now i can workaround with this

.nav-decor {
  background-color: rgba(0, 0, 0, 0) !important;
}

.show-page ion-page {
  opacity: 0;
}

.show-tab .show-page {
  opacity: 1;
}

@skaman
Copy link

skaman commented Jul 3, 2016

#7154 seem fix also this

@guillenotfound
Copy link
Contributor Author

@skaman how can I compile the current master? Hope thet release a new nightly soon anyway.

@skaman
Copy link

skaman commented Jul 3, 2016

@ZiFFeL1992 don't need to compile the master.

Open your app.md.scss and app.ios.scss and put this at the end on both files

/* maps workaround */

ion-tab {
  transform: translateY(-200%);
}

ion-tab.show-tab {
  transform: translateY(0);
}

Then you can remove it when you upgrade to beta 11

@brandyscarney
Copy link
Member

You can update to the latest nightly by running:

npm install --save ionic-angular@nightly

from within your project directory. Can you confirm that this is working with the latest nightly @ZiFFeL1992 ? Thanks! :)

@guillenotfound
Copy link
Contributor Author

Yes, works with @skaman workaround on beta10.

I can't test on my project because is under a huge refactor so some things may not work, but as the workaround is part of beta 11 should be working there as well.

@jgw96
Copy link
Contributor

jgw96 commented Jul 13, 2016

Just did a quick test of this with the latest nightly and it seems to be fixed (: I will check back once beta.11 is released, but i will be closing this issue for now. Thanks for using Ionic!

@jgw96 jgw96 closed this as completed Jul 13, 2016
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants