title: Is there a way to stop an ionic modal filling the screen?
body: <p>I am using an ionic modal to show a login form. This looks great when the screen is large, it is centred beautifully in the screen. But when the screen is shrunk to a certain point (e.g. iPhone 6 size) the modal takes up the full screen (both height and width). Is there a way to ensure the modal stays smaller than the screen?</p>
  
  <p>My html looks like this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ion-modal-view  style="max-height:250px;"&gt;
    &lt;ion-header-bar&gt;
      &lt;h1 class="title"&gt;Login&lt;/h1&gt;
      &lt;div class="buttons"&gt;
        &lt;button class="button button-clear" ng-click="closeLogin()"&gt;Close&lt;/button&gt;
      &lt;/div&gt;
    &lt;/ion-header-bar&gt;
    &lt;ion-content&gt;
      &lt;form ng-submit="doLogin()"&gt;
        &lt;div class="list"&gt;
          &lt;label class="item item-input"&gt;
            &lt;span class="input-label"&gt;Username&lt;/span&gt;
            &lt;input type="text" ng-model="loginData.username"&gt;
          &lt;/label&gt;
          &lt;label class="item item-input"&gt;
            &lt;span class="input-label"&gt;Password&lt;/span&gt;
            &lt;input type="password" ng-model="loginData.password"&gt;
          &lt;/label&gt;
          &lt;label class="item"&gt;
            &lt;button class="button button-block button-positive" type="submit"&gt;Log in&lt;/button&gt;
          &lt;/label&gt;
        &lt;/div&gt;
      &lt;/form&gt;
    &lt;/ion-content&gt;
  &lt;/ion-modal-view&gt;</code></pre>
  </div>
  </div>
  </p>