Justification->Alignment

This commit is contained in:
Tig
2024-05-10 11:27:02 -06:00
parent c5a6c907a4
commit ce1e243df2
54 changed files with 551 additions and 543 deletions

View File

@@ -235,12 +235,10 @@ Replace references to to nested types with the new standalone version
## View and Text Alignment is now Justification
In v1, both `TextAlignment` and `VerticalTextAlignment` enums were used to align text in views. In v2, these enums have been replaced with the `Justification` enum. The `View.TextJustification` property controls horizontal text alignment, and the `View.VerticalTextAlignment` property controls vertical text alignment.
In v1, both `TextAlignment` and `VerticalTextAlignment` enums were used to align text in views. In v2, these enums have been replaced with the `Alignment` enum. The `View.TextAlignment` property controls horizontal text alignment, and the `View.VerticalTextAlignment` property controls vertical text alignment.
v2 now supports `Pos.Justify` which enables views to be justified within their superview.
v2 now supports `Pos.Align` which enables views to be justified within their superview.
### How to Fix
* Replace `TextAlignment` with `Justification`
* Replace `VerticalTextAlignment` with `Justification`. `Middle` is now `Center`.
* Update any code that used `View.TextAlignment` or `View.VerticalTextAlignment` to justify text in views.
* Replace `VerticalAlignment.Middle` is now `Alignment.Center`.