Skip to content

Commit baf4fec

Browse files
author
Leibale Eidelman
committed
fix for commit 1f8e2be
fix lint
1 parent 1f8e2be commit baf4fec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cdk/overlay/position/global-position-strategy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ export class GlobalPositionStrategy implements PositionStrategy {
169169

170170
if (config.width === '100%') {
171171
parentStyles.justifyContent = 'flex-start';
172-
} else if (this._overlayRef.getConfig().direction === 'rtl' && this._justifyContent.startsWith('flex-')) {
172+
} else if (this._overlayRef.getConfig().direction === 'rtl' &&
173+
this._justifyContent.startsWith('flex-')) {
173174
// In RTL the browser will invert `flex-start` and `flex-end` automatically, but we
174175
// don't want that because our positioning is explicitly `left` and `right`, hence
175176
// why we do another inversion to ensure that the overlay stays in the same position.

0 commit comments

Comments
 (0)