@@ -13,7 +13,7 @@ import {
1313} from '@angular/core' ;
1414import { ControlValueAccessor , NG_VALUE_ACCESSOR } from '@angular/forms' ;
1515import { DOCUMENT } from '@angular/platform-browser' ;
16- import { Overlay , OverlayRef , OverlayState , TemplatePortal , RepositionScrollStrategy } from '../core' ;
16+ import { Overlay , OverlayRef , OverlayState , TemplatePortal , ScrollStrategyOptions } from '../core' ;
1717import { MdAutocomplete } from './autocomplete' ;
1818import { PositionStrategy } from '../core/overlay/position/position-strategy' ;
1919import { ConnectedPositionStrategy } from '../core/overlay/position/connected-position-strategy' ;
@@ -103,6 +103,7 @@ export class MdAutocompleteTrigger implements ControlValueAccessor, OnDestroy {
103103 constructor ( private _element : ElementRef , private _overlay : Overlay ,
104104 private _viewContainerRef : ViewContainerRef ,
105105 private _changeDetectorRef : ChangeDetectorRef ,
106+ private _scrollStrategyOptions : ScrollStrategyOptions ,
106107 @Optional ( ) private _dir : Dir , private _zone : NgZone ,
107108 @Optional ( ) @Host ( ) private _inputContainer : MdInputContainer ,
108109 @Optional ( ) @Inject ( DOCUMENT ) private _document : any ) { }
@@ -366,7 +367,7 @@ export class MdAutocompleteTrigger implements ControlValueAccessor, OnDestroy {
366367 overlayState . positionStrategy = this . _getOverlayPosition ( ) ;
367368 overlayState . width = this . _getHostWidth ( ) ;
368369 overlayState . direction = this . _dir ? this . _dir . value : 'ltr' ;
369- overlayState . scrollStrategy = ' reposition' ;
370+ overlayState . scrollStrategy = this . _scrollStrategyOptions . reposition ;
370371 return overlayState ;
371372 }
372373
0 commit comments