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

alignment property like UILabel.textAlignment #40

Closed
kazuhiro4949 opened this issue Feb 7, 2018 · 2 comments
Closed

alignment property like UILabel.textAlignment #40

kazuhiro4949 opened this issue Feb 7, 2018 · 2 comments

Comments

@kazuhiro4949
Copy link
Owner

kazuhiro4949 commented Feb 7, 2018

I want a convenience method to align cells when PagingMenuView.contentSize.width is shorter than PagingMenuView.bounds.width.

menuViewController.alignment = .center
// |     |menu1|menu2|menu3|      |
menuViewController.alignment = .right
// |           |menu1|menu2|menu3||
menuViewController.alignment = .left // default
// ||menu1|menu2|menu3|           |
@kazuhiro4949 kazuhiro4949 mentioned this issue Feb 12, 2018
4 tasks
@kazuhiro4949
Copy link
Owner Author

merged

@wousser
Copy link

wousser commented Mar 14, 2018

I'd like to reopen this issue as alignment settings are not applied in viewDidLoad() method. Only after the view has been loaded alignment settings are applied.

To reproduce, open the iOS sample project, in AlignmentViewController.swift in viewDidLoad() change .left to .center. Run the app and the alignment is still left aligned.

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