mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
use flexibleConnectedTo and remove deprecated (#7747)
This commit is contained in:
parent
6153e55d1a
commit
d8d1119495
@ -101,27 +101,15 @@ export class ContextMenuOverlayService {
|
|||||||
} as any)
|
} as any)
|
||||||
};
|
};
|
||||||
|
|
||||||
const positionStrategy = this.overlay.position()
|
const positionStrategy = this.overlay
|
||||||
.connectedTo(
|
.position()
|
||||||
new ElementRef(fakeElement),
|
.flexibleConnectedTo(new ElementRef(fakeElement))
|
||||||
{ originX: 'start', originY: 'bottom' },
|
.withPositions([{
|
||||||
{ overlayX: 'start', overlayY: 'top' })
|
originX: 'start',
|
||||||
.withFallbackPosition(
|
originY: 'bottom',
|
||||||
{ originX: 'start', originY: 'top' },
|
overlayX: 'start',
|
||||||
{ overlayX: 'start', overlayY: 'bottom' })
|
overlayY: 'top'
|
||||||
.withFallbackPosition(
|
}]);
|
||||||
{ originX: 'end', originY: 'top' },
|
|
||||||
{ overlayX: 'start', overlayY: 'top' })
|
|
||||||
.withFallbackPosition(
|
|
||||||
{ originX: 'start', originY: 'top' },
|
|
||||||
{ overlayX: 'end', overlayY: 'top' })
|
|
||||||
.withFallbackPosition(
|
|
||||||
{ originX: 'end', originY: 'center' },
|
|
||||||
{ overlayX: 'start', overlayY: 'center' })
|
|
||||||
.withFallbackPosition(
|
|
||||||
{ originX: 'start', originY: 'center' },
|
|
||||||
{ overlayX: 'end', overlayY: 'center' }
|
|
||||||
);
|
|
||||||
|
|
||||||
const overlayConfig = new OverlayConfig({
|
const overlayConfig = new OverlayConfig({
|
||||||
hasBackdrop: config.hasBackdrop,
|
hasBackdrop: config.hasBackdrop,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user