code: public void setContentHeight(int height)
      {
          int h = height;
          if (max_size.height != -1 && h > max_size.height)
              h = max_size.height;
          if (min_size.height != -1 && h < min_size.height)
              h = min_size.height;
          content.height = h;
      }
docs: Sets the height of the content while considering the min- and max- height.
  @param height the height the set if possible