Template.home.rendered = function() {
  // Probably erroneous way to clear the previous Famous canvas.
  // But it works.
  var mainContext = Engine.createContext();

  var contentView = new Scrollview({
    size: [undefined, true]
  });

  window.content = new Surface({
    size: [undefined, undefined],
    content: UI.render(Template.homecontent).render().toHTML()
  });

  content.pipe(contentView);
  contentView.sequenceFrom([content]);

  mainContext.add(contentView);
  
  setTimeout(function() {
    var h = $('.famous-container .container')[0].scrollHeight + 72;
    content.setSize([undefined, h]);
  }, 1000);
};
Template.home.rendered = function() {
  // Probably erroneous way to clear the previous Famous canvas.
  // But it works.
  var mainContext = Engine.createContext();

  var contentView = new Scrollview({
    size: [undefined, undefined]
  });

  window.content = new Surface({
    size: [undefined, undefined],
    content: UI.render(Template.homecontent).render().toHTML()
  });

  content.pipe(contentView);
  contentView.sequenceFrom([content]);

  mainContext.add(contentView);
  
  setTimeout(function() {
    var h = $('.famous-container .container')[0].scrollHeight + 72;
    content.setSize([undefined, h]);
  }, 1000);
};
Change to undefined instead of true, since it makes no difference anyway.
Change to undefined instead of true, since it makes no difference anyway.
