Skip to content

Commit

Permalink
[focus-ios] Fixes mozilla-mobile/focus-ios#1473: Settings constraints…
Browse files Browse the repository at this point in the history
… broken with dynamic font sizes (mozilla-mobile/focus-ios#1593)
  • Loading branch information
janicelee authored and sblatz committed Nov 26, 2018
1 parent 6305099 commit 8d00962
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions focus-ios/Blockzilla/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ class SettingsTableViewAccessoryCell: SettingsTableViewCell {
}
}

textLabel?.numberOfLines = 0
textLabel?.text = " "

contentView.addSubview(accessoryLabel)
contentView.addSubview(newLabel)
contentView.addSubview(spacerView)
Expand All @@ -82,7 +79,7 @@ class SettingsTableViewAccessoryCell: SettingsTableViewCell {

spacerView.snp.makeConstraints { make in
make.top.bottom.leading.equalToSuperview()
make.trailing.equalTo(textLabel!.snp.leading)
make.width.equalTo(UIConstants.layout.settingsFirstTitleOffset)
}

newLabel.snp.makeConstraints { make in
Expand Down

0 comments on commit 8d00962

Please sign in to comment.