message: Fix issues with flow layout sizing when too small
diff: +// clang-format off
  /****************************************************************************
  **
  ** Copyright (C) 2015 The Qt Company Ltd.
  @@ -156,6 +157,16 @@ QSize FlowLayout::minimumSize() const
  size = size.expandedTo(item->minimumSize());
  size += QSize(2*margin(), 2*margin());
  +
  + // we use the previous height as a hint for the minimum size otherwise we'll never request
  + // enough height for multiple rows
  + size.setHeight(qMax(size.height(), heightForWidth(m_prevRect.width())));
  +
  + // we use the previous width as a minimum, otherwise if we have a long item which expands
  + // up to a large width in our minimum, other layouts might starve us of enough height
  + // because it will assume we are sized to the minimum.
  + size.setWidth(qMin(size.width(), m_prevRect.width()));
  +
  return size;
  }
  