removed wrapper
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
3a3790d302
commit
b415aeafc5
@ -37,6 +37,7 @@ open class TooltipDialog: View, UIScrollViewDelegate {
|
||||
private let contentStackView = UIStackView().with {
|
||||
$0.translatesAutoresizingMaskIntoConstraints = false
|
||||
$0.axis = .vertical
|
||||
$0.alignment = .leading
|
||||
$0.distribution = .fillProportionally
|
||||
$0.spacing = 0
|
||||
}
|
||||
@ -177,16 +178,7 @@ open class TooltipDialog: View, UIScrollViewDelegate {
|
||||
if var surfaceable = contentView as? Surfaceable {
|
||||
surfaceable.surface = surface
|
||||
}
|
||||
let wrapper = View()
|
||||
wrapper.addSubview(contentView)
|
||||
contentView
|
||||
.pinTop()
|
||||
.pinLeading()
|
||||
.pinBottom()
|
||||
.pinTrailingLessThanOrEqualTo()
|
||||
|
||||
contentView.setNeedsLayout()
|
||||
contentStackView.addArrangedSubview(wrapper)
|
||||
contentStackView.addArrangedSubview(contentView)
|
||||
addedContent = true
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user