Skip to content

Commit f525d4d

Browse files
committed
Right and left margins of SplitRow
Fix to exactly align the SplitRow with other rows from the Eureka framework. This fixes #27
1 parent e21dd4f commit f525d4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SplitRow/SplitRowCell.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ open class SplitRowCell<L: RowType, R: RowType>: Cell<SplitRowValue<L.Cell.Value
3131
tableViewRight.separatorStyle = .none
3232
tableViewRight.leftSeparatorStyle = .singleLine
3333
tableViewRight.translatesAutoresizingMaskIntoConstraints = false
34-
34+
3535
contentView.addSubview(tableViewLeft)
36-
contentView.addConstraint(NSLayoutConstraint(item: tableViewLeft, attribute: .left, relatedBy: .equal, toItem: contentView, attribute: .left, multiplier: 1.0, constant: 0.0))
36+
contentView.addConstraint(NSLayoutConstraint(item: tableViewLeft, attribute: .leftMargin, relatedBy: .equal, toItem: contentView, attribute: .leftMargin, multiplier: 1.0, constant: 0.0))
3737

3838
contentView.addSubview(tableViewRight)
39-
contentView.addConstraint(NSLayoutConstraint(item: tableViewRight, attribute: .right, relatedBy: .equal, toItem: contentView, attribute: .right, multiplier: 1.0, constant: 0.0))
39+
contentView.addConstraint(NSLayoutConstraint(item: tableViewRight, attribute: .rightMargin, relatedBy: .equal, toItem: contentView, attribute: .rightMargin, multiplier: 1.0, constant: 0.0))
4040
}
4141

4242
required public init?(coder aDecoder: NSCoder) {

0 commit comments

Comments
 (0)