Example #1
0
  private void widthChanged() {
    boolean heightChange = false;

    for (ConfigEntry entry : options) {
      int prevHeight = entry.height();
      entry.setSize(width(), entry.height());
      entry.recalculateHeight();

      if (entry.height() != prevHeight) {
        heightChange = true;
      }
    }

    if (heightChange) {
      recalculatePositions();
    }
  }