Skip to content

Commit 2e10801

Browse files
committed
fixup! fix(overlay): fix type in property name
1 parent 9a7d1d5 commit 2e10801

File tree

4 files changed

+31
-18
lines changed

4 files changed

+31
-18
lines changed

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cdk/overlay/overlay-directives.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,12 +382,12 @@ describe('Overlay directives', () => {
382382
});
383383

384384
it('should allow for flexible positioning to be enabled', () => {
385-
expect(fixture.componentInstance.connectedOverlayDirective.flexibleDiemsions).not.toBe(true);
385+
expect(fixture.componentInstance.connectedOverlayDirective.flexibleDimensions).not.toBe(true);
386386

387387
fixture.componentInstance.flexibleDimensions = true;
388388
fixture.detectChanges();
389389

390-
expect(fixture.componentInstance.connectedOverlayDirective.flexibleDiemsions).toBe(true);
390+
expect(fixture.componentInstance.connectedOverlayDirective.flexibleDimensions).toBe(true);
391391
});
392392

393393
it('should allow for growing after open to be enabled', () => {

src/cdk/overlay/overlay-directives.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export class CdkConnectedOverlay implements OnDestroy, OnChanges {
312312
private _createPositionStrategy(): FlexibleConnectedPositionStrategy {
313313
const strategy = this._overlay.position()
314314
.flexibleConnectedTo(this.origin.elementRef)
315-
.withFlexibleDimensions(this.flexibleDiemsions)
315+
.withFlexibleDimensions(this.flexibleDimensions)
316316
.withPush(this.push)
317317
.withGrowAfterOpen(this.growAfterOpen)
318318
.withViewportMargin(this.viewportMargin)

src/lib/schematics/update/material/data/property-names.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,19 @@ export const propertyNames: VersionChanges<MaterialPropertyNameData> = {
337337
}
338338
}
339339
]
340+
},
341+
342+
{
343+
pr: 'https://github.com/angular/material2/pull/12927',
344+
changes: [
345+
{
346+
replace: 'flexibleDiemsions',
347+
replaceWith: 'flexibleDimensions',
348+
whitelist: {
349+
classes: ['CdkConnectedOverlay']
350+
}
351+
}
352+
]
340353
}
341354
]
342355
};

0 commit comments

Comments
 (0)