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

createDrawer parameters not working #31

Closed
tvanmil opened this issue Dec 19, 2013 · 2 comments
Closed

createDrawer parameters not working #31

tvanmil opened this issue Dec 19, 2013 · 2 comments

Comments

@tvanmil
Copy link

tvanmil commented Dec 19, 2013

I am opening the drawer with the following parameters:

var drawer = NappDrawerModule.createDrawer({
    leftWindow              : Alloy.createController('navwin').getView(),
    centerWindow            : Alloy.createController('centerwin').getView(),
    closeDrawerGestureMode  : NappDrawerModule.CLOSE_MODE_ALL,
    openDrawerGestureMode   : NappDrawerModule.OPEN_MODE_ALL,
    leftDrawerWidth         : 230,
    orientationModes        : [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT],
    showShadow              : true,
    animationMode           : NappDrawerModule.ANIMATION_SLIDE,
    shouldStretchDrawer     : false
});
drawer.open();

This works fine, except that the bottom two parameters aren't visible in the UI. The animationMode is NONE, and the drawer still is stretched when the left window is opened.

I can get the intended behaviour by calling:

drawer.setAnimationMode(NappDrawerModule.ANIMATION_PARALLAX_FACTOR_5);
drawer.setShouldStretchDrawer(false);

directly after drawer.open(). Then the correct behaviour is seen. Setting these properties between .createDrawer() and .open() also doesn't work. It seems that these parameters are not used (or overrulled) somewhere.

Is anyone else experiencing this behaviour? I would be nice if those properties can be set during creation of the drawer, instead of after opening the drawer.

@binc-tw
Copy link

binc-tw commented Dec 22, 2013

Same problem unter 3.2.0 (iOS7). Need to set "animationMode" and "stretch" after drawer fires "open" event.

@viezel
Copy link
Owner

viezel commented Jan 16, 2014

dublicate #38

@viezel viezel closed this as completed Jan 16, 2014
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

3 participants