code: @Override
      public void initContent() {
          try {
              final double size = Math.min(stack.getPrefHeight(), stack.getPrefWidth());
              stack.setPrefSize(size, size);
              stack.requestLayout();
          } catch (Exception ex) {
              throw new RuntimeException(ex);
          }
      }
docs: {@inheritDoc}