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

enableLeftFoldDragging and enableRightFoldDragging ignored? #23

Open
kosso opened this issue Mar 27, 2013 · 4 comments
Open

enableLeftFoldDragging and enableRightFoldDragging ignored? #23

kosso opened this issue Mar 27, 2013 · 4 comments

Comments

@kosso
Copy link

kosso commented Mar 27, 2013

Hi,

I'd like to be able to control whether or not a left or right view can be pulled out and unfolded.

Setting either of enableLeftFoldDragging or enableRightFoldDragging seems to be ignored, as I can still unfold the views when these are set to false.

bug?

Thanks. Module version 0.3. TiSDK 3+

@kosso
Copy link
Author

kosso commented Mar 27, 2013

Update: It appears to be possible to set the [Left|Right]FoldDragging ok after it has been added to the window, but not on the creation of the paperFoldView, using the properties.

Edit: And now I see why: In the source of the PaperFold module, the setLeftFoldContentView method is always setting enableLeftFoldDragging to YES.

https://github.com/atsusy/PaperFold-for-iOS/blob/9b21a556531d6b9ead39247df5b5e77caccef272/PaperFold/PaperFold/PaperFold/PaperFoldView.m#L143

@nickfoti
Copy link

I have a similar issue with setShowDividerLines:YES. I've tried to change that value using your suggestion by doing it post add to window, but doesn't seem to work.

window.add(paperfoldView);
paperfoldView.setShowDividerLines = 'NO';

Any suggestions?

Thanks!

@chmiiller
Copy link

Here (in Titanium for iOS) it works after the paperfoldView is added...In the creation it's really ignored =/
But with a paperFoldView.enableLeftFoldDragging = false; you can't drag it anymore!

@nickfoti
Copy link

Thanks for the tip, indeed does work for fold dragging, doesn't seem to work for hiding the divider lines though.

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