Skip to content

[Fix] Fixed separator setting line height#578

Closed
AndriiPetrovDev wants to merge 1 commit intoMessageKit:developmentfrom
AndriiPetrovDev:fix-separator-line-height
Closed

[Fix] Fixed separator setting line height#578
AndriiPetrovDev wants to merge 1 commit intoMessageKit:developmentfrom
AndriiPetrovDev:fix-separator-line-height

Conversation

@AndriiPetrovDev
Copy link

What does this implement/fix? Explain your changes.

fix separator line constraints

Does this close any currently open issues?

#446

Any relevant logs, error output, etc?

Any other comments?

Where has this been tested?

Devices/Simulators:
iPhone 8 plus

iOS Version:
11.2

Swift Version:
4

MessageKit Version:
0.13.1

@SD10
Copy link
Member

SD10 commented Mar 19, 2018

@AndrewPetrov I’m not sure why we’re making this change? cc @nathantannar4

Sent with GitHawk

@SD10 SD10 assigned SD10 and unassigned SD10 Mar 19, 2018
@AndriiPetrovDev
Copy link
Author

constraint height to 1 prevents separator to change height. And also I changed vertical position constraint to free change separator height and don't touch other internal stuff


// The constraints within the MessageInputBar
separatorLine.addConstraints(topAnchor, left: leftAnchor, right: rightAnchor, heightConstant: 1)
separatorLine.addConstraints(left: leftAnchor, bottom: topStackView.topAnchor, right: rightAnchor)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your fix, please update the commit to just remove height constraint. Because topStackView has topStackViewPadding, we need to tie the separator to the top of messageInputBar.
separatorLine.addConstraints(topAnchor, left: leftAnchor, right: rightAnchor)

@SD10
Copy link
Member

SD10 commented Apr 26, 2018

@AndrewPetrov Any update on the requested changes?

@SD10 SD10 closed this Apr 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments