updateLayout method

void updateLayout(
  1. int instanceId,
  2. int id,
  3. double x,
  4. double y,
  5. double w,
  6. double h,
)

Implementation

void updateLayout(
  int instanceId,
  int id,
  double x,
  double y,
  double w,
  double h,
) {
  var uiNode = controllerManager.findNode(instanceId, id);
  w = correctPixel(w);
  h = correctPixel(h);
  LogUtils.dLayout(
    "ID:$id, updateLayout, x:$x, y:$y, w:$w, h:$h",
  );
  if (uiNode != null) {
    uiNode.updateLayout(x, y, w, h);
    addUpdateNodeIfNeeded(uiNode);
  }
}