Skip to content

Commit be4845c

Browse files
committed
fix(overlay): properly handle horizontal positioning in rtl directionality
1 parent 9a5fad6 commit be4845c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ export class GlobalPositionStrategy implements PositionStrategy {
178178
parentStyles.justifyContent = 'flex-end';
179179
} else if (this._justifyContent === 'flex-end') {
180180
parentStyles.justifyContent = 'flex-start';
181+
} else {
182+
parentStyles.justifyContent = this._justifyContent;
181183
}
182184
} else {
183185
parentStyles.justifyContent = this._justifyContent;

0 commit comments

Comments
 (0)