Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set a minimum width for bubble? #59

Open
GopiK14 opened this issue May 10, 2018 · 1 comment
Open

How to set a minimum width for bubble? #59

GopiK14 opened this issue May 10, 2018 · 1 comment

Comments

@GopiK14
Copy link

GopiK14 commented May 10, 2018

Hi Team,

I need to set a minimum width to bubbles to show the time label inside bubbles with single "letter" message like "T" "oh", Any suggestions?

screen shot 2018-05-11 at 1 50 24 am

Thanks

@GopiK14
Copy link
Author

GopiK14 commented May 12, 2018

Hi All

Its very simple ->
In class ZHCMessagesBubbleCalculator,

`-(CGSize)messageBubbleSizeForMessageData:(id)messageData atIndexPath:(NSIndexPath *)indexPath withTableView:(ZHCMessagesTableView *)tableView{
.....
if (finalWidth < 100) {
finalWidth = 100;
}
finalSize = CGSizeMake(finalWidth, stringSize.height + verticalInsets);

....
}`

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant