fixed autolayout issue with multiline labels
This commit is contained in:
parent
17c7475d2a
commit
5ca39ca499
|
|
@ -94,6 +94,11 @@ public extension TableDirector {
|
|||
let builder = builderAtIndexPath(indexPath)
|
||||
|
||||
let cell = tableView.dequeueReusableCellWithIdentifier(builder.0.reusableIdentifier, forIndexPath: indexPath)
|
||||
|
||||
if cell.frame.size.width != tableView.frame.size.width {
|
||||
cell.frame = CGRectMake(0, 0, tableView.frame.size.width, cell.frame.size.height)
|
||||
cell.layoutIfNeeded()
|
||||
}
|
||||
|
||||
builder.0.invokeAction(.configure, cell: cell, indexPath: indexPath, itemIndex: builder.1, userInfo: nil)
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue