function positionAndFocusMenu() {
        return $q(function(resolve) {
          if (opts.isRemoved) return $q.reject(false);

          var info = calculateMenuPositions(scope, element, opts);

          info.container.element.css(animator.toCss(info.container.styles));
          info.dropDown.element.css(animator.toCss(info.dropDown.styles));

          $$rAF(function() {
            element.addClass('md-active');
            info.dropDown.element.css(animator.toCss({transform: ''}));

            resolve();
          });

        });
      }
function positionAndFocusMenu() {
        return $q(function(resolve) {
          if (opts.isRemoved) return $q.reject(false);

          var info = calculateMenuPositions(scope, element, opts);

          info.container.element.css(animator.toCss(info.container.styles));
          info.dropDown.element.css(animator.toCss(info.dropDown.styles));

          $$rAF(function() {
            element.addClass('md-active');
            info.dropDown.element.css(animator.toCss({transform: ''}));

            resolve();
          });

        });
      }
function positionAndFocusMenu ( ) { return $q ( function ( resolve ) { if ( opts . isRemoved ) return $q . reject ( false ) ; var info = calculateMenuPositions ( scope , element , opts ) ; info . container . element . css ( animator . toCss ( info . container . styles ) ) ; info . dropDown . element . css ( animator . toCss ( info . dropDown . styles ) ) ; $$rAF ( function ( ) { element . addClass ( 'md-active' ) ; info . dropDown . element . css ( animator . toCss ( { transform : '' } ) ) ; resolve ( ) ; } ) ; } ) ; }
Initialize container and dropDown menu positions/scale, then animate
to show.
Initialize container and dropDown menu positions / scale then animate to show .