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

ViewNavigation close don't show the "back" View #9

Open
matiasfha opened this issue Jul 2, 2014 · 2 comments
Open

ViewNavigation close don't show the "back" View #9

matiasfha opened this issue Jul 2, 2014 · 2 comments

Comments

@matiasfha
Copy link

I have this:
index.xml

<Alloy>
<Window class="container" navbarHidden="true">
    <ImageView id="image" image="/images/default.png" />
</Window>
</Alloy>

index.js

var App = require('core');
App.MapModule = Alloy.Globals.MapModule;
App.globalWindow = $.index;
App.globalWindow.open();
App.init();
//Check for login and then
App.Navigator.open('signin');

signin.js

var App = require('core');
$.login.addEventListener('click',function(){
App.Navigator.open('register');
});

register.js

var App = require('core');
$.nav.getView('back').addEventListener('click',function(){
    App.Navigator.close();
});

The close method works!, the register View is closed but the before controller (signin) just show a "white" screen and not the elements...

Any idea why?

@matiasfha
Copy link
Author

The problem is that when i calll "close()", the method remove 2 views from the collection/parent and not just one.

I tri to fix...

@asleson
Copy link

asleson commented Sep 11, 2014

@msdark

See my comments in issue #11 .

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

No branches or pull requests

2 participants