Skip to content

Commit

Permalink
minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Nov 15, 2023
1 parent 076ca0b commit ddf063b
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,22 +201,6 @@ export class CdsIntentComponent implements OnInit, OnDestroy, OnChanges {
this.addEventListener();
}


ngAfterViewInit(){
new ResizeObserver(function(entries) {
// since we are observing only a single element, so we access the first element in entries array
let rect = entries[0].contentRect;

// current width & height
let width = rect.width;
let height = rect.height;

console.log('Current Width : ' + width);
console.log('Current Height : ' + height);
}).observe(document.querySelector(`#intent-content-${this.intent.intent_id}`));

}

private setActionIntent(){
try {
let connectorID = '';
Expand Down Expand Up @@ -276,8 +260,6 @@ export class CdsIntentComponent implements OnInit, OnDestroy, OnChanges {

}

ngAfter

// ---------------------------------------------------------
// Event listener
// ---------------------------------------------------------
Expand Down Expand Up @@ -339,10 +321,6 @@ export class CdsIntentComponent implements OnInit, OnDestroy, OnChanges {
},
true
);

document.addEventListener('load', (event)=>{
console.log('event loadeddddddd')
})
}


Expand Down

0 comments on commit ddf063b

Please sign in to comment.