Skip to content

Commit

Permalink
Merge pull request #21 from 3sidedcube/fix/cell_separators
Browse files Browse the repository at this point in the history
Fixes cell separators on iPad
  • Loading branch information
simonmitchell committed Feb 6, 2018
2 parents 05003b6 + 3bc8480 commit 483bee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ThunderTable/TableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ open class TableViewCell: UITableViewCell {
//This is really quite awful but it's the only way to get tableview to remove the 1px line at the top of sections on a group tableview when disabling cell seperators
override open func addSubview(_ view: UIView) {

if !shouldDisplaySeparators && round(view.frame.height * UIScreen.main.scale) == 1 || round(view.frame.height) == 1 {
if !shouldDisplaySeparators && (round(view.frame.height * UIScreen.main.scale) == 1 || round(view.frame.height) == 1) {
return
}

Expand Down

0 comments on commit 483bee2

Please sign in to comment.