Преглед на файлове

Adjust calculated height of description cell

The height calculation for the description cell did not previously take into account the table's separator insets, which may be adjusted for things like section index titles.
Tanner Bennett преди 6 години
родител
ревизия
9f68011207
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Classes/ObjectExplorers/FLEXObjectExplorerViewController.m

+ 1 - 1
Classes/ObjectExplorers/FLEXObjectExplorerViewController.m

@@ -347,7 +347,7 @@
         
         
         return [FLEXMultilineTableViewCell
         return [FLEXMultilineTableViewCell
             preferredHeightWithAttributedText:attributedText
             preferredHeightWithAttributedText:attributedText
-            maxWidth:tableView.frame.size.width
+            maxWidth:tableView.frame.size.width - tableView.separatorInset.right
             style:tableView.style
             style:tableView.style
             showsAccessory:NO
             showsAccessory:NO
         ];
         ];