code: function onResize() {
      var tab_content = $('.tab-content')[0];
      var left = tab_content.offsetLeft;
      var top = tab_content.offsetTop;
      var width = document.documentElement.clientWidth - left;
      var height = document.documentElement.clientHeight - top;
      tab_content.style.width = width + "px";
      tab_content.style.height = height + "px";
  }
docs: window resize