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

setRightWindow does Not work #188

Open
nitrag opened this issue Nov 25, 2015 · 2 comments
Open

setRightWindow does Not work #188

nitrag opened this issue Nov 25, 2015 · 2 comments

Comments

@nitrag
Copy link

nitrag commented Nov 25, 2015

I load the right window on init. Then later in my app I want to replace it.

var filterWin;
function toggleRight(){
    if(!filterWin){
        filterWin = Ti.UI.createWindow({height: Ti.UI.FILL, width: Ti.UI.FILL, module: "xp.ui", role: "rightWindow", backgroundColor: 'blue'});
        $.drawer.setRightWindow(filterWin);
    }
    $.drawer.toggleRightWindow();
    Ti.API.info("Filter clicked");  
}

Added debug code:
https://github.com/nitrag/NappDrawer/blob/master/ios/Classes/DkNappDrawerDrawer.m#L264-L268

Result of console:

...
[DEBUG] Clearing Right Window
[INFO]  Filter clicked
(((locked up here, no other debug messages, other drawer function no longer work)))
@nitrag
Copy link
Author

nitrag commented Nov 25, 2015

It appears it is breaking because of this:

https://github.com/nitrag/NappDrawer/blob/master/ios/Classes/DkNappDrawerDrawer.m#L262

if([TiUtils boolValue:args] == 0 ){

Can we rework this? What's a better method to determine if args is a Titanium Window?

HazemKhaled added a commit to HazemKhaled/TiWindowStack that referenced this issue Apr 25, 2016
@SeanMaraj
Copy link

Did you ever find a work around for this?

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