code: function(element) {
          if(!element) return;
  
          var children = element.children();
          if(children.length <= 0) return;
  
          var totalWidth = 0;
          for(var i = 0; i < children.length; i++) {
              totalWidth += $(children[i]).width();
          }
  
          element.width(totalWidth);
      }
docs: Method that return container width depending on children's width