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

Computes Murmur's height dynamically #53

Merged
merged 3 commits into from
Jan 28, 2016
Merged

Conversation

acadet
Copy link
Contributor

@acadet acadet commented Jan 20, 2016

@zenangst
Copy link
Contributor

This looks neat! What do you guys think? @RamonGilabert @vadymmarkov

@aimak
Copy link

aimak commented Jan 22, 2016

This is super useful :)

@acadet
Copy link
Contributor Author

acadet commented Jan 23, 2016

Thanks guys :)
So... when can we merge it?

@LucidityDesign
Copy link
Contributor

+1

@RamonGilabert
Copy link
Contributor

Hey @acadet, sorry about the super long delay. Been some crazy days at the office.

I see two problems in the PR, one is the indentation, easy fix, we are using a 2 indentation for the projects, the PR I see is 4, just a small thing! :)

The other thing is that you "kill" the constant height, that means that, if the sizeToFit is smaller than the status bar, Whistle will be smaller, would it? You could put like a check if it's smaller to use the dimensions.

What do you think?

let neededDimensions =
NSString(string: text).boundingRectWithSize(
CGSize(width: labelWidth, height: CGFloat.infinity),
options: NSStringDrawingOptions.UsesLineFragmentOrigin,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also NSStringDrawingOptions could be dropped.

@acadet
Copy link
Contributor Author

acadet commented Jan 27, 2016

Hey @RamonGilabert,

Sorry for the indentation, Swiftmat was messing with my code.
Let me know what you think of this fix.

RamonGilabert added a commit that referenced this pull request Jan 28, 2016
Computes Murmur's height dynamically
@RamonGilabert RamonGilabert merged commit dc4fe41 into hyperoslo:master Jan 28, 2016
@RamonGilabert
Copy link
Contributor

Should be good now! 👍

Nice work @acadet, we'll make a release soon to include this into a wiki.

Thank's for the pull request and again sorry about the late responses, been a crazy week. Keep them coming! :)

Ramon

@LucidityDesign
Copy link
Contributor

Can we do the same for shouts?

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

Successfully merging this pull request may close these issues.

5 participants