gadicc / meteor-famous-views

Famous, the Meteor Way (with Reactive Blaze Templates/Views)
http://famous-views.meteor.com/
GNU Lesser General Public License v3.0
332 stars 27 forks source link

How to make size of container automatic #269

Open PankajJatav opened 9 years ago

PankajJatav commented 9 years ago

Hey @gadicc

This is your example for layout

{{#Scene}} {{#Node id="baseNode" size="100%, 103%"}}

  {{#DOMElement style="overflow: auto"}}
  {{/DOMElement}}

  {{#SequentialLayout}}

    {{#Node id="header" size="100%, 100"}}
      {{#DOMElement class="header"}}
        <h1> Home Page </h1>
      {{/DOMElement}}
    {{/Node}}

    {{#Node id="content" size="100%, 500"}}
        {{#DOMElement class="content"}}
            <p> This is the content for now </p>
        {{/DOMElement}}
    {{/Node}}

    {{#Node id="footer" size="100%, 100"}}
      {{#DOMElement class="footer"}}
        <p> This is the footer </p>
      {{/DOMElement}}
    {{/Node}}

  {{/SequentialLayout}}

{{/Node}}

{{/Scene}}

How can i make content size automatic. In other word it will totally depends on the DomElement content. I do not want a fixed footer, So the footer position will be always after content. My node size will be always depends on the DomElement content size. One solution is to check DomElement content size and using reactVar or Session set the node size. If their any solution. Please let me know.