Merge branch 'development' into development

This commit is contained in:
hyouuu
2018-06-07 12:57:32 -07:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -8,6 +8,9 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa
### Fixed
- Fixed `MessageContentCell`'s subviews `frame` when size equal to `.zero`.
[#716](https://github.com/MessageKit/MessageKit/pull/716) by [@zhongwuzw](https://github.com/zhongwuzw).
- Fixed `MessagesCollectionView`'s bottom inset when hardware keyboard is connected. Do not adjust `MessagesCollection`'s inset when being popped.
[#707](https://github.com/MessageKit/MessageKit/pull/707) by [@zhongwuzw](https://github.com/zhongwuzw).
@@ -64,7 +64,7 @@ final class MessageContentCellTests: XCTestCase {
func testApplyLayoutAttributes() {
let layoutAttributes = MessagesCollectionViewLayoutAttributes()
layoutAttributes.avatarPosition.horizontal = .cellLeading
layoutAttributes.avatarPosition = AvatarPosition(horizontal: .cellLeading, vertical: .cellBottom)
cell.apply(layoutAttributes)
XCTAssertEqual(cell.avatarView.frame, layoutAttributes.frame)