File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
tools/public_api_guard/cdk Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -504,6 +504,14 @@ export class CdkVirtualScrollViewport extends CdkVirtualScrollable implements On
504
504
}
505
505
}
506
506
507
+ ngAfterViewChecked ( ) {
508
+ // Apply the content transform. The transform can't be set via an Angular binding because
509
+ // bypassSecurityTrustStyle is banned in Google. However the value is safe, it's composed of
510
+ // string literals, a variable that can only be 'X' or 'Y', and user input that is run through
511
+ // the `Number` function first to coerce it to a numeric value.
512
+ this . _contentWrapper . nativeElement . style . transform = this . _renderedContentTransform ;
513
+ }
514
+
507
515
/** Run change detection. */
508
516
private _doChangeDetection ( ) {
509
517
if ( this . _isDestroyed ) {
@@ -515,11 +523,6 @@ export class CdkVirtualScrollViewport extends CdkVirtualScrollable implements On
515
523
afterNextRender (
516
524
( ) => {
517
525
this . _isChangeDetectionPending = false ;
518
- // Apply the content transform. The transform can't be set via an Angular binding because
519
- // bypassSecurityTrustStyle is banned in Google. However the value is safe, it's composed of
520
- // string literals, a variable that can only be 'X' or 'Y', and user input that is run through
521
- // the `Number` function first to coerce it to a numeric value.
522
- this . _contentWrapper . nativeElement . style . transform = this . _renderedContentTransform ;
523
526
const runAfterChangeDetection = this . _runAfterChangeDetection ;
524
527
this . _runAfterChangeDetection = [ ] ;
525
528
for ( const fn of runAfterChangeDetection ) {
Original file line number Diff line number Diff line change @@ -205,6 +205,8 @@ export class CdkVirtualScrollViewport extends CdkVirtualScrollable implements On
205
205
// (undocumented)
206
206
static ngAcceptInputType_appendOnly: unknown ;
207
207
// (undocumented)
208
+ ngAfterViewChecked(): void ;
209
+ // (undocumented)
208
210
ngOnDestroy(): void ;
209
211
// (undocumented)
210
212
ngOnInit(): void ;
You can’t perform that action at this time.
0 commit comments