Skip to content

Commit

Permalink
Merge pull request #3219 from IgniteUI/nalipiev/bottom-top-anim-7-0
Browse files Browse the repository at this point in the history
Bottom top animation, when row editing overlay is shown at top
  • Loading branch information
rkaraivanov authored Nov 29, 2018
2 parents 24209d2 + 7c8c90d commit a6da468
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/igniteui-angular/src/lib/grids/grid.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { IgxGridForOfDirective } from '../directives/for-of/for_of.directive';
import { SortingDirection } from '../data-operations/sorting-expression.interface';
import { ConnectedPositioningStrategy } from '../services';
import { getPointFromPositionsSettings, VerticalAlignment, PositionSettings } from '../services/overlay/utilities';
import { scaleInVerBottom, scaleInVerTop } from '../animations/main';

/**
* @hidden
Expand Down Expand Up @@ -611,6 +612,7 @@ export class ContainerPositioningStrategy extends ConnectedPositioningStrategy {
container.clientHeight <
target.offsetTop + target.getBoundingClientRect().height + contentElement.getBoundingClientRect().height;
this.settings.verticalStartPoint = this.isTop ? VerticalAlignment.Top : VerticalAlignment.Bottom;
this.settings.openAnimation = this.isTop ? scaleInVerBottom : scaleInVerTop;
const startPoint = getPointFromPositionsSettings(this.settings, contentElement.parentElement);
contentElement.style.top = startPoint.y + (this.isTop ? VerticalAlignment.Top : VerticalAlignment.Bottom) * size.height + 'px';
contentElement.style.width = target.clientWidth + 'px';
Expand Down

0 comments on commit a6da468

Please sign in to comment.