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

Added convenient text field alignment capabilities #896

Merged
merged 1 commit into from
Jan 11, 2020
Merged

Added convenient text field alignment capabilities #896

merged 1 commit into from
Jan 11, 2020

Conversation

Jugen
Copy link
Collaborator

@Jugen Jugen commented Jan 10, 2020

JavaFX's TextField has a property and associated methods to determine the alignment of text in the field.
This PR adds similar methods to StyledTextField as a convenience and to aid switching from TextField.
The only difference is that TextField used Pos as its value while StyledTextField uses TextAlignment.

Note that TextAlignment.JUSTIFY isn't currently accommodated.
-fx-alignment can be used for CSS styling.

@Jugen Jugen merged commit 705eca4 into FXMisc:master Jan 11, 2020
@Jugen Jugen deleted the text_field_alignment branch January 11, 2020 19:44
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.

1 participant