Skip to content

Added convenient text field alignment capabilities#896

Merged
Jugen merged 1 commit intoFXMisc:masterfrom
Jugen:text_field_alignment
Jan 11, 2020
Merged

Added convenient text field alignment capabilities#896
Jugen merged 1 commit intoFXMisc:masterfrom
Jugen:text_field_alignment

Conversation

@Jugen
Copy link
Copy Markdown
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