diff --git a/KSTokenView/KSTokenView.swift b/KSTokenView/KSTokenView.swift index 4ab3527..d6b6e86 100644 --- a/KSTokenView/KSTokenView.swift +++ b/KSTokenView/KSTokenView.swift @@ -788,7 +788,7 @@ open class KSTokenView: UIView { } fileprivate func _changeHeight(_ tokenFieldHeight: CGFloat, completion: (() -> Void)? = nil) { - let fullHeight = tokenFieldHeight + (_showingSearchResult ? _searchResultHeight : 0.0) + let fullHeight = tokenFieldHeight + (_showingSearchResult ? searchResultSize.height : 0.0) delegate?.tokenView?(self, willChangeFrameWithX: frame.origin.x, y: frame.origin.y, width: frame.size.width, height: fullHeight) self._repositionSearchResults(tokenFieldHeight)