fix setBorder wont invalidate view

This commit is contained in:
pengfei.zhou 2019-12-16 15:37:34 +08:00
parent f1f35493fb
commit feb322ec8d

View File

@ -217,6 +217,7 @@ public abstract class ViewNode<T extends View> extends DoricContextHolder {
if (prop.isObject()) { if (prop.isObject()) {
requireDoricLayer().setBorder(DoricUtils.dp2px(prop.asObject().getProperty("width").asNumber().toFloat()), requireDoricLayer().setBorder(DoricUtils.dp2px(prop.asObject().getProperty("width").asNumber().toFloat()),
prop.asObject().getProperty("color").asNumber().toInt()); prop.asObject().getProperty("color").asNumber().toInt());
requireDoricLayer().invalidate();
} }
break; break;
case "alpha": case "alpha":