-
-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix aligning multiple text nodes within
<Box>
If there were mulitple text nodes within `<Box>` container and `alignItems` or `justifyContent` were applied, that text was not aligned and always had coordinates of x=0 y=0. The reason is in that case these text nodes are treated as separate nodes in the tree, so they have their own coordinates. In other words, `alignItems` or `justifyContent` affected and laid out each text node individually. This change fixes it by taking the X and Y first text node in `<Box>` and offsetting all text nodes by that distance.
- Loading branch information
Vadim Demedes
committed
Sep 29, 2019
1 parent
ad7160e
commit 1f96300
Showing
3 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters