@Override
  public Dimension getPreferredSize() {
    int width = 0;
    int height = 0;

    Container parent = getParent();
    if (parent != null) {
      boolean isImages;
      synchronized (myLock) {
        isImages = !ContainerUtil.isEmpty(myImages);
      }
      if (isImages) {
        width = getFullWidth();
        height = (int)(width / 1.58) + JBUI.scale(28);
      }
    }

    return new Dimension(width, height);
  }
@Override
  public Dimension getPreferredSize()