Skip to content

Commit

Permalink
Right and left margins of SplitRow
Browse files Browse the repository at this point in the history
Fix to exactly align the SplitRow with other rows from the Eureka framework. This fixes #27
  • Loading branch information
marbetschar committed Jan 2, 2019
1 parent e21dd4f commit f525d4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SplitRow/SplitRowCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ open class SplitRowCell<L: RowType, R: RowType>: Cell<SplitRowValue<L.Cell.Value
tableViewRight.separatorStyle = .none
tableViewRight.leftSeparatorStyle = .singleLine
tableViewRight.translatesAutoresizingMaskIntoConstraints = false
contentView.addSubview(tableViewLeft)
contentView.addConstraint(NSLayoutConstraint(item: tableViewLeft, attribute: .left, relatedBy: .equal, toItem: contentView, attribute: .left, multiplier: 1.0, constant: 0.0))
contentView.addConstraint(NSLayoutConstraint(item: tableViewLeft, attribute: .leftMargin, relatedBy: .equal, toItem: contentView, attribute: .leftMargin, multiplier: 1.0, constant: 0.0))

contentView.addSubview(tableViewRight)
contentView.addConstraint(NSLayoutConstraint(item: tableViewRight, attribute: .right, relatedBy: .equal, toItem: contentView, attribute: .right, multiplier: 1.0, constant: 0.0))
contentView.addConstraint(NSLayoutConstraint(item: tableViewRight, attribute: .rightMargin, relatedBy: .equal, toItem: contentView, attribute: .rightMargin, multiplier: 1.0, constant: 0.0))
}

required public init?(coder aDecoder: NSCoder) {
Expand Down

0 comments on commit f525d4d

Please sign in to comment.