I am trying to get the height of a div tag on window resizing but I get always the same height. The event resizing is triggered correctly.

```
var resizeNews = this.resizeNews = function() {
    $('.top-news__pillar').each(function (index){
            console.log($(this).outerHeight());
            if($(this).outerHeight() > maxHeightPillar)  maxHeightPillar = $(this).outerHeight(); 
        });        

```

/*if I don't set the height below the height correctly change when resizing*/

```
     $('.top-news__pillar').each(function (index){
          $(this).outerHeight(maxHeightPillar);
        });
   }

    $(window).on('resize',resizeNews);

```