title: ngMaterial - md-autocomplete - results list showing behind modal form
body: <p>I've got modal form, where I would like to have field with autocompletition in my modal form.</p>
  
  <p>To achieve that, I'm using <code>md-autocomplete</code> from <code>angular-material#1.1.0</code>, which provides such functionality and is easy to use. </p>
  
  <p>The problem is when I write something inside this field, entire suggestions list appears behind my modal window, but it should appear on top of this modal form.</p>
  
  <p>Do you have any idea how to solve this issue? </p>
  
  <p>I'm attaching html code of form's source and related angular's controller.</p>
  
  <p><code>movie-resource-dialog-controller.js</code>
  </p>
  
  <pre><code>(function() {
  'use strict';
  
  angular
      .module('vodApp')
      .controller('MovieResourceDialogController', MovieResourceDialogController);
  
  MovieResourceDialogController.$inject = ['$http', '$timeout', '$scope', '$stateParams', '$uibModalInstance', 'DataUtils', 'entity', 'MovieResource', 'Movie'];
  
  function MovieResourceDialogController ($http, $timeout, $scope, $stateParams, $uibModalInstance, DataUtils, entity, MovieResource, Movie) {
      var vm = this;
  
      vm.movieResource = entity;
      vm.clear = clear;
      vm.byteSize = DataUtils.byteSize;
      vm.openFile = DataUtils.openFile;
      vm.save = save;
  
      $timeout(function (){
          angular.element('.form-group:eq(1)&gt;input').focus();
      });
  
      function clear () {
          $uibModalInstance.dismiss('cancel');
      }
  
      function save () {
          vm.isSaving = true;
  
          if (vm.movieResource.id !== null) {
              MovieResource.update(vm.movieResource, onSaveSuccess, onSaveError);
          } else {
              MovieResource.save(vm.movieResource, onSaveSuccess, onSaveError);
          }
      }
  
      function onSaveSuccess (result) {
          $scope.$emit('vodApp:movieResourceUpdate', result);
          $uibModalInstance.close(result);
          vm.isSaving = false;
      }
  
      function onSaveError () {
          vm.isSaving = false;
      }
  
      vm.setResource = function ($file, movieResource) {
          if ($file &amp;&amp; $file.$error === 'pattern') {
              return;
          }
          if ($file) {
              DataUtils.toBase64($file, function(base64Data) {
                  $scope.$apply(function() {
                      movieResource.resource = base64Data;
                      movieResource.resourceContentType = $file.type;
                  });
              });
          }
      };
  
      vm.querySearchMoviesLike = function (query) {
          Movie.queryByTitle({
              title: query
          }, onSuccess, onError);
          function onSuccess(data, headers) {
              vm.proposedMovies = data;
          }
          function onError(error) {
              AlertService.error(error.data.message);
          }
  
          return vm.proposedMovies;
      }
  }
  })();
  </code></pre>
  
  <p><code>movie-resource-dialog.html</code>
  </p>
  
  <pre><code> &lt;div class="form-group"&gt;
          &lt;label class="control-label"&gt;Movie Title&lt;/label&gt;
          &lt;md-autocomplete flex
                           md-selected-item="vm.selectedMovie"
                           md-search-text="vm.searchMovieTitle"
                           md-items="item in vm.querySearchMoviesLike(vm.searchMovieTitle)"
                           md-item-text="title"
                           md-delay="300"&gt;
              &lt;div layout="row" class="item" layout-align="start center"&gt;
                  &lt;img data-ng-src="{{'data:' + item.posterContentType + ';base64,' + item.poster}}" style="width: 40px;" /&gt;
                  &amp;nbsp;&amp;nbsp;
                  &lt;span md-highlight-text="vm.searchMovieTitle"&gt;{{item.title}}&lt;/span&gt;
              &lt;/div&gt;
          &lt;/md-autocomplete&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>Screenshot (it looks like that):
  <a href="https://i.stack.imgur.com/P6Ln3.png" rel="nofollow noreferrer">https://i.stack.imgur.com/P6Ln3.png</a></p>
  
  <p>Thank you, Luke</p>