mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 16:32:24 +00:00
Improved anchored text chunk logic #570
This commit is contained in:
@@ -221,7 +221,7 @@ class TextView extends GroupView {
|
||||
TextView node = this;
|
||||
ViewParent parent = this.getParent();
|
||||
for (int i = font.size() - 1; i >= 0; i--) {
|
||||
if (!(parent instanceof TextView) || font.get(i).textAnchor == TextProperties.TextAnchor.start) {
|
||||
if (!(parent instanceof TextView) || font.get(i).textAnchor == TextProperties.TextAnchor.start || node.mPositionX != null) {
|
||||
return node;
|
||||
}
|
||||
node = (TextView) parent;
|
||||
|
||||
Reference in New Issue
Block a user