this.width = width; this.height = height;  if (myAxis == X_AXIS) { layoutMajorAxis(width, X_AXIS, offsetsX, spansX); layoutMinorAxis(height, Y_AXIS, offsetsY, spansY); } else { layoutMajorAxis(height, Y_AXIS, offsetsY, spansY); layoutMinorAxis(width, X_AXIS, offsetsX, spansX); }
baselineLayout(width, X_AXIS, offsetsX, spansX); baselineLayout(height, Y_AXIS, offsetsY, spansY);
  protected void layout(int width, int height)  {    this.width = width;    this.height = height;    if (myAxis == X_AXIS)      {        layoutMajorAxis(width, X_AXIS, offsetsX, spansX);        layoutMinorAxis(height, Y_AXIS, offsetsY, spansY);      }    else      {        layoutMajorAxis(height, Y_AXIS, offsetsY, spansY);        layoutMinorAxis(width, X_AXIS, offsetsX, spansX);      }  }