Skip to content

Commit

Permalink
Merge pull request #265 from PhilipDukhov/middle-content-size
Browse files Browse the repository at this point in the history
  • Loading branch information
nathantannar4 authored Oct 15, 2024
2 parents 4730143 + b1d2e5b commit 215edf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/InputBarAccessoryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,9 @@ open class InputBarAccessoryView: UIView {
inputTextView.invalidateIntrinsicContentSize()
}
}
if let middleContentView, middleContentView != inputTextView {
inputTextViewHeight = middleContentView.intrinsicContentSize.height
}

// Calculate the required height
let totalPadding = padding.top + padding.bottom + topStackViewPadding.top + middleContentViewPadding.top + middleContentViewPadding.bottom
Expand Down

0 comments on commit 215edf4

Please sign in to comment.