Skip to content

Commit

Permalink
Fixing rotation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialee0416 committed Dec 20, 2022
1 parent 27130d6 commit 95e4e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/FluentUI/Table View/TableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ open class TableViewCell: UITableViewCell, TokenizedControlInternal {
}

private static func customViewLeadingOffset(isInSelectionMode: Bool,
leadingPadding: CGFloat) -> CGFloat { // remove
leadingPadding: CGFloat) -> CGFloat {
return leadingPadding + selectionModeAreaWidth(isInSelectionMode: isInSelectionMode,
selectionImageMarginTrailing: TableViewCellTokenSet.selectionImageMarginTrailing,
selectionImageSize: TableViewCellTokenSet.selectionImageSize)
Expand Down Expand Up @@ -903,7 +903,7 @@ open class TableViewCell: UITableViewCell, TokenizedControlInternal {
@objc open var isUnreadDotVisible: Bool = false {
didSet {
if isUnreadDotVisible {
self.layer.addSublayer(unreadDotLayer)
self.contentView.layer.addSublayer(unreadDotLayer)
let leadingDotDimensions: CGFloat = TableViewCellTokenSet.leadingDotDimensions
let leadingDotYOffset = ceil((contentView.frame.height - leadingDotDimensions) / 2)
let leadingDotXOffset = TableViewCell.customViewLeadingOffset(isInSelectionMode: isInSelectionMode,
Expand Down

0 comments on commit 95e4e31

Please sign in to comment.