Fix bug caused by incorrectly determining when reorder control was being shown. Issue #623

This commit is contained in:
Maurice Parker 2019-04-20 16:39:32 -05:00
parent 749d862450
commit 1b793c4827
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,8 @@ class MasterTableViewCell : UITableViewCell {
override func layoutSubviews() { override func layoutSubviews() {
super.layoutSubviews() super.layoutSubviews()
let layout = MasterTableViewCellLayout(cellSize: bounds.size, insets: safeAreaInsets, shouldShowImage: shouldShowImage, label: titleView, unreadCountView: unreadCountView, showingEditingControl: showingEditControl, indent: indentationLevel == 1, shouldShowDisclosure: !showsReorderControl) let shouldShowDisclosure = !(showingEditControl && showsReorderControl)
let layout = MasterTableViewCellLayout(cellSize: bounds.size, insets: safeAreaInsets, shouldShowImage: shouldShowImage, label: titleView, unreadCountView: unreadCountView, showingEditingControl: showingEditControl, indent: indentationLevel == 1, shouldShowDisclosure: shouldShowDisclosure)
layoutWith(layout) layoutWith(layout)
} }