Skip to content

Buttons don't align vertically with textInputView #76

Description

@siefix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions