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

Label text problem #12

Open
mimmo00 opened this issue Sep 28, 2015 · 5 comments
Open

Label text problem #12

mimmo00 opened this issue Sep 28, 2015 · 5 comments

Comments

@mimmo00
Copy link

mimmo00 commented Sep 28, 2015

Hi, when I change the text of UILabel inside the Draggable view, the position of the view changes (Also in your example demo). Why?

Thanks!

andreamazz added a commit that referenced this issue Sep 29, 2015
@andreamazz
Copy link
Owner

Hi @mimmo00
checkout the latest version for a fix. To make a long and painful story short: changing the text was triggering the update of the constraints. I solved the issue adding this:

self.translatesAutoresizingMaskIntoConstraints = YES;

@andreamazz
Copy link
Owner

Of course this generates a metric shitton of warnings, so I should really come up with a better solution

@andreamazz
Copy link
Owner

Hey, just wanted to touch base, I'm still working on this issue, I hope to get back to you soon.

andreamazz added a commit that referenced this issue Oct 28, 2015
@andreamazz
Copy link
Owner

Commit a22f36e should do the trick

@andreamazz
Copy link
Owner

It does, and it also breaks UIKit. I'll have to change implementation.

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

2 participants