@@ -8,8 +8,9 @@ import { ElasticPositionStrategy } from '../../services/overlay/position/elastic
8
8
import { IColumnToggledEventArgs } from '../common/events' ;
9
9
import { IgxColumnActionsComponent } from '../column-actions/column-actions.component' ;
10
10
import { IgxToggleDirective , ToggleViewCancelableEventArgs , ToggleViewEventArgs } from '../../directives/toggle/toggle.directive' ;
11
- import { OverlaySettings } from '../../services/overlay/utilities' ;
11
+ import { HorizontalAlignment , OverlaySettings , VerticalAlignment } from '../../services/overlay/utilities' ;
12
12
import { IgxToolbarToken } from './token' ;
13
+ import { ConnectedPositioningStrategy } from '../../services/overlay/position/connected-positioning-strategy' ;
13
14
14
15
15
16
/**
@@ -43,7 +44,7 @@ export abstract class BaseToolbarDirective implements OnDestroy {
43
44
@Input ( )
44
45
public set overlaySettings ( overlaySettings : OverlaySettings ) {
45
46
this . _overlaySettings = overlaySettings ;
46
- } ;
47
+ }
47
48
48
49
/**
49
50
* Returns overlay settings
@@ -85,7 +86,12 @@ export abstract class BaseToolbarDirective implements OnDestroy {
85
86
private $sub : Subscription ;
86
87
87
88
private _overlaySettings : OverlaySettings = {
88
- positionStrategy : new ElasticPositionStrategy ( ) ,
89
+ positionStrategy : new ConnectedPositioningStrategy ( {
90
+ horizontalDirection : HorizontalAlignment . Left ,
91
+ horizontalStartPoint : HorizontalAlignment . Right ,
92
+ verticalDirection : VerticalAlignment . Bottom ,
93
+ verticalStartPoint : VerticalAlignment . Bottom
94
+ } ) ,
89
95
scrollStrategy : new AbsoluteScrollStrategy ( ) ,
90
96
modal : false ,
91
97
closeOnEscape : true ,
0 commit comments