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

Children items are not vertically aligned properly when the height of the parent is undefined #83

Closed
delimy opened this issue May 9, 2015 · 6 comments

Comments

@delimy
Copy link

delimy commented May 9, 2015

Sample input:
{  
  style:{  
    flexDirection:"row"
  },
  children:[  
    {  
      style:{  
        width:100,
        flexDirection:"row"
      },
      children:[  
        {  
          style:{  
            width:20,
            height:20,
            alignSelf:"flex-end"
          }
        }
      ]
    },
    {  
      style:{  
        width:100,
        height:200
      }
    }
  ]
}

"flex-end" in the sample is not doing anything.

@delimy
Copy link
Author

delimy commented May 9, 2015

correct:
screen shot 2015-05-08 at 6 37 44 pm
wrong:
screen shot 2015-05-08 at 6 38 06 pm

@ghost
Copy link

ghost commented Aug 4, 2015

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

@felixakiragreen
Copy link

👍

@swathysubhash
Copy link

Facing this issue

@rreusser
Copy link

rreusser commented Oct 1, 2015

We may be experiencing a very similar issue in which flex properties have no effect unless the width is explicitly defined. In other words, centering is nearly impossible unless the width is explicitly queried after layout and then set. This could be solved if width:100% were possible, but that's a separate (but again, related?) issue.

@respectTheCode
Copy link

+1

@lucasr lucasr closed this as completed in 425345a Mar 1, 2016
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

5 participants