Skip to content

Commit

Permalink
Merge branch 'main_0.29' into sople/versionBump_0.29.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialee0416 authored Jul 17, 2024
2 parents 29113d2 + cbb3677 commit d3e23b8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ios/FluentUI/Other Cells/ActionsCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ open class ActionsCell: UITableViewCell, TokenizedControlInternal {
verticalSeparator.frame = CGRect(x: left, y: 0, width: verticalSeparator.frame.width, height: frame.height)
}

// A hacky way to hide the system separator by squeezing it just enough to have zero width.
// This is the only known way to hide the separator without making the UITableView do it for us.
let boundsWidth = bounds.width
let targetSystemSeparatorInset = UIEdgeInsets(top: 0, left: boundsWidth, bottom: 0, right: 0)
if separatorInset.left < boundsWidth {
separatorInset = targetSystemSeparatorInset
}

layoutHorizontalSeparator(topSeparator, with: topSeparatorType, at: 0)
layoutHorizontalSeparator(bottomSeparator, with: bottomSeparatorType, at: frame.height - bottomSeparator.frame.height)
}
Expand Down
8 changes: 8 additions & 0 deletions ios/FluentUI/Table View/TableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,14 @@ open class TableViewCell: UITableViewCell, TokenizedControlInternal {
layoutContentSubviews()
contentView.flipSubviewsForRTL()

// A hacky way to hide the system separator by squeezing it just enough to have zero width.
// This is the only known way to hide the separator without making the UITableView do it for us.
let boundsWidth = bounds.width
let targetSystemSeparatorInset = UIEdgeInsets(top: 0, left: boundsWidth, bottom: 0, right: 0)
if separatorInset.left < boundsWidth {
separatorInset = targetSystemSeparatorInset
}

layoutSeparator(topSeparator, with: topSeparatorType, at: 0)
layoutSeparator(bottomSeparator, with: bottomSeparatorType, at: frame.height - bottomSeparator.frame.height)
}
Expand Down

0 comments on commit d3e23b8

Please sign in to comment.