Skip to content

Commit 5fa9912

Browse files
committed
fix(esf): fixed right extend in auto position strategy #7742
1 parent f6fb822 commit 5fa9912

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
@@ -119,7 +119,7 @@ export class AutoPositionStrategy extends BaseFitPositionStrategy {
119119
*/
120120
private horizontalPush(connectedFit: ConnectedFit): number {
121121
const leftExtend = connectedFit.left;
122-
const rightExtend = connectedFit.right - connectedFit.viewPortRect.right;
122+
const rightExtend = connectedFit.right - connectedFit.viewPortRect.width;
123123
// if leftExtend < 0 overlay goes beyond left end of the screen. We should push it back with exactly
124124
// as much as it is beyond the screen.
125125
// if rightExtend > 0 overlay goes beyond right end of the screen. We should push it back with the

0 commit comments

Comments
 (0)