title: How to prevent a jetpack compose scaffold from taking the whole height of the screen when it is shown in a dialog
body: <p>I am having an android activity which has <code>Base.Theme.AppCompat.Light.Dialog</code> as a theme on tablets and therefore is shown in a dialog.</p>
  <p>When I used XML layouts I could set a min height with wrap content for the layout so it would</p>
  <ul>
  <li>Be at least x dp high when there was no or very little content.</li>
  <li>High as the content when the content was higher than the min height</li>
  <li>High as the screen when the content wouldnt fit inside the height of the screen, in that case I could scroll</li>
  </ul>
  <p>Using a Jetpack Compose's Scaffold I am struggling recreating that behaviour. The dialog is alsways as high as the screen allows, even when there is no content.</p>
  <p>I tried the following modifiers as a parameter to the scaffold:</p>
  <ul>
  <li><code>Modifier.wrapContentHeight()</code> - the dialog is still as high as the screen</li>
  <li><code>Modifier.defaultMinSize(minHeight = 250.dp)</code> - the dialog is still as high as the screen</li>
  <li><code>Modifier.height(height = 250.dp)</code> - now it is smaller but it is fixed to that size, not growing when there is more content</li>
  <li><code>Modifier.requiredHeightIn(min = 250.dp, max = getMyScreenHeightinDp())</code> - the dialog is still as high as the screen</li>
  </ul>
  <p>Since you can reduce the height of the scaffold with the <code>.height(...)</code> modifier I think it should also be possible to recreate a wrap content behaviour. But how?</p>