@Override
  public void pack(boolean width, boolean height) {
    Dimension size = calculateSizeForPack(width, height);
    if (size == null) return;

    final Window window = getContentWindow(myContent);
    if (window != null) {
      window.setSize(size);
    }
  }
@Override
  public void pack(boolean width, boolean height)