-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add size(w,h) + 9 alignment options: center(), centerLeft() etc #32
Comments
As for width and height you can use |
Ooh that would be nice :) Still I center stuff a lot, would be really handy to just have center(). All of the other ones are less important imo. Another option would be to allow us to enter the raw values, like this would be really flexible: |
For now i wont add this. I want to keep the package simple. What i mean by that is to keep the package verbose and to have as few special cases as possible, like I will keep this issue open for now. |
You should have opened a new issue regarding the bug. Anyways the problem is sorted in a upcoming release! |
In v. 0.2.1 |
I often find myself having to chain both width and height,
width(50).height(50) would read better as size(50,50)
Additionally, when alignment things, it can be overly verbose:
.alignment(Alignment.center) could just be center()
The text was updated successfully, but these errors were encountered: