Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Fixes #1473: Settings constraints broken with dynamic font sizes (#1593)
Browse files Browse the repository at this point in the history
  • Loading branch information
janicelee authored and sblatz committed Nov 26, 2018
1 parent af11b31 commit e805c4c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions 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 e805c4c

Please sign in to comment.