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

Larger word overbounds contentView #16

Closed
LeonardoCardoso opened this issue Nov 7, 2016 · 4 comments
Closed

Larger word overbounds contentView #16

LeonardoCardoso opened this issue Nov 7, 2016 · 4 comments

Comments

@LeonardoCardoso
Copy link

Report a bug

What did you do?

I used a long word.

What did you expect to happen?

Truncate the word.

What happened instead?

When the word is larger than the contentView, it overbounds.
screen shot 2016-11-07 at 00 03 24

Solution

I've solved it adding this line right after this block SegmentioCell.swift#L183-L192:

segmentTitleLabel.leadingAnchor.constraint(equalTo: containerView.leadingAnchor, constant: 5).isActive = true

screen shot 2016-11-07 at 00 03 33
screen shot 2016-11-07 at 00 03 39

@IgorMuzyka
Copy link
Contributor

@LeonardoCardoso please check if the latest code works for you and if yes please close the issue.
Install Segmentio via cocoapods like this:
pod 'Segmentio', :git=> 'git@github.com:Yalantis/Segmentio.git'

@LeonardoCardoso
Copy link
Author

Ok. I'll have a look.

@serejahh
Copy link
Contributor

serejahh commented Dec 1, 2016

Hi @LeonardoCardoso. Any news about the issue?

@LeonardoCardoso
Copy link
Author

It didn't work for me. I had to use my solution.

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

No branches or pull requests

3 participants