SizeRequirements sr = super.calculateMinorAxisRequirements(axis, r);   return sr;
if (r == null) r = new SizeRequirements();  if (setCSSSpan(r, axis)) {   SizeRequirements parent = super.calculateMinorAxisRequirements(axis, null); int margin = axis == X_AXIS ? getLeftInset() + getRightInset() : getTopInset() + getBottomInset(); r.minimum -= margin; r.preferred -= margin; r.maximum -= margin; constrainSize(axis, r, parent); } else r = super.calculateMinorAxisRequirements(axis, r);   if (axis == X_AXIS) { Object o = getAttributes().getAttribute(CSS.Attribute.TEXT_ALIGN); if (o != null) { String al = o.toString().trim(); if (al.equals("center")) r.alignment = 0.5f; else if (al.equals("right")) r.alignment = 1.0f; else r.alignment = 0.0f; } } return r;
  protected SizeRequirements calculateMinorAxisRequirements(int axis,                                                            SizeRequirements r)  {    SizeRequirements sr = super.calculateMinorAxisRequirements(axis, r);    // FIXME: adjust it if the CSS width or height attribute is specified    // and applicable.    return sr;  }