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 use Layout in different components? #5

Open
pedroteixeira opened this issue Feb 27, 2015 · 0 comments
Open

How to use Layout in different components? #5

pedroteixeira opened this issue Feb 27, 2015 · 0 comments

Comments

@pedroteixeira
Copy link

Using inside a child component:

<Layout layoutHeight="omit">
</Layout>

Stills outputs a div with inherited height/width. it seems layoutIsInherited is not even called, right?

Wanted to make sure if the use case is supported:

var A = React.createClass({
   <Layout layoutHeight={100} layoutWidth={100}>
      <B />
   </Layout>
})

var B = React.createClass({
   <Layout layoutHeight={50}>
     ....
   </Layout>
})

Does B needs LayoutMixin? For some reason, B gets style={width:100, width:100}

@pedroteixeira pedroteixeira changed the title is layoutHeight=omit implemented? How to use Layout in different components? Feb 27, 2015
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