android:set imageView adjustViewBounds anywhere

This commit is contained in:
pengfei.zhou 2020-04-13 14:43:01 +08:00 committed by osborn
parent 7a2bffdb64
commit 8faf0e5d33
2 changed files with 41 additions and 104 deletions

View File

@ -193,9 +193,6 @@ public class FlexNode extends GroupNode<YogaLayout> {
super.blend(jsObject);
for (ViewNode childNode : mChildNodes) {
YogaNode yogaNode = this.mView.getYogaNodeForView(childNode.getNodeView());
if (childNode.getFlexConfig() != null && childNode.getView() instanceof ImageView) {
((ImageView) childNode.getView()).setAdjustViewBounds(false);
}
if (yogaNode != null) {
blendSubFlexConfig(yogaNode, childNode.getFlexConfig());
}

File diff suppressed because one or more lines are too long