Skip to content

Commit fbd9e11

Browse files
committed
fix(esf): fixed bottom extend in auto position strategy #7742
1 parent 9aa6661 commit fbd9e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/services/overlay/position/auto-position-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export class AutoPositionStrategy extends BaseFitPositionStrategy {
141141
*/
142142
private verticalPush(connectedFit: ConnectedFit): number {
143143
const topExtend = connectedFit.top;
144-
const bottomExtend = connectedFit.bottom - connectedFit.viewPortRect.bottom;
144+
const bottomExtend = connectedFit.bottom - connectedFit.viewPortRect.height;
145145
if (topExtend < 0) {
146146
return Math.abs(topExtend);
147147
} else if (bottomExtend > 0) {

0 commit comments

Comments
 (0)