ZHChat icon indicating copy to clipboard operation
ZHChat copied to clipboard

how to set the space between bubble container's top and bubble top label's bottom

Open wustzhy opened this issue 7 years ago • 2 comments

when i set " the bubble container's top = bubble top label's bottom + 10 " , unexpectedly, found that the text in the messageBubbleContainerView is no longer be vertically center. So , please give me help to correctly set the space between bubble container's top and bubble top label's bottom.

image.png

image I set the constraint in xib .Did I do wrongly? Or I need to do sth else to not make effect upon the bubble container's content. Thanks for your reply!

wustzhy avatar Jun 20 '17 02:06 wustzhy

@zhuozhuo please help me above, thank you very much. Have you try that way above? Did you face the same issue?

wustzhy avatar Jun 21 '17 01:06 wustzhy

You can try to modify this property: textViewTextFrameInsets in ZHCMessagesTableviewLayoutAttributes Class.

zhuozhuo avatar Jun 21 '17 01:06 zhuozhuo