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

alignItems:stretch not available? #7

Open
josefrichter opened this issue Jul 8, 2015 · 1 comment
Open

alignItems:stretch not available? #7

josefrichter opened this issue Jul 8, 2015 · 1 comment

Comments

@josefrichter
Copy link

Tried to make a "responsive" layout, which kinda works when done this way: Duplicated the group prototype and set its width to e.g. 640 (iPhone 5). Created object from the new prototype and moved original group content into the new one. Now any change in Cell and Section header prototypes will be reflected on both iPhone 6 and iPhone 5 artboards. Pretty cool.

Here’s the amended example file: http://cl.ly/1B0m0E1V3g16

I also tried applying flexDirection:column; alignItems:stretch; on the original group prototype, which should eliminate the need of separate group prototypes, but for some reason it doesn’t do anything. – Any ideas why?

@hrescak
Copy link
Owner

hrescak commented Jul 8, 2015

The problem is that the .group instances have no way of knowing what width they should stretch to, as group width is defined by the width of it's children, with the exception of artboards. I'll keep this open though, I'm thinking about ways to make it better.

Oh and flexDirection:column; alignItems:stretch; don't need to be added, that's the default behavior.

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

2 participants