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

Buttons don't align vertically with textInputView #76

Open
siefix opened this issue Sep 13, 2018 · 1 comment
Open

Buttons don't align vertically with textInputView #76

siefix opened this issue Sep 13, 2018 · 1 comment
Labels

Comments

@siefix
Copy link

siefix commented Sep 13, 2018

Using latest master branch

The button(s) of the messageView have their own arbitrary vertical alignment. Is there any way to make them match the messageView.textViewInset you set?

Looks like you can only set the right/left insets of buttons using messageView.setButton(inset: CGFloat, position: MessageView.ButtonPosition)

Could it be laying out on its own margins because of sizeToFit()?

internal func buttonLayoutDidChange(button: UIButton) {
        button.sizeToFit()
        setNeedsLayout()
}

img_5416

img_5413

@rnystrom
Copy link
Member

Ya could be the buttons own insets causing the problem? We tweaked the button layout a little in the latest version. I’m open to reviewing some PRs to adjust it!

Sent with GitHawk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants