fix setBorder wont invalidate view
This commit is contained in:
parent
f1f35493fb
commit
feb322ec8d
@ -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":
|
||||||
|
Reference in New Issue
Block a user