Skip to content

Commit

Permalink
Fix brave/brave-ios#6171: Don't shift switches on shields view when t…
Browse files Browse the repository at this point in the history
…ext gets too long (brave/brave-ios#6984)
  • Loading branch information
kylehickinson authored Feb 22, 2023
1 parent b27e4dd commit 08051ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Brave/Frontend/Shields/AdvancedShieldsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ extension AdvancedShieldsView {
toggleSwitch.addTarget(self, action: #selector(switchValueChanged), for: .valueChanged)

toggleSwitch.setContentHuggingPriority(.required, for: .horizontal)
toggleSwitch.setContentCompressionResistancePriority(.required, for: .horizontal)

snp.makeConstraints {
$0.height.greaterThanOrEqualTo(toggleSwitch)
Expand Down

0 comments on commit 08051ea

Please sign in to comment.