Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make size of container automatic #269

Open
PankajJatav opened this issue Oct 20, 2015 · 0 comments
Open

How to make size of container automatic #269

PankajJatav opened this issue Oct 20, 2015 · 0 comments

Comments

@PankajJatav
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant