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

div with tool attribute does not allow flex for div within #695

Closed
vikjung opened this issue Aug 8, 2014 · 1 comment
Closed

div with tool attribute does not allow flex for div within #695

vikjung opened this issue Aug 8, 2014 · 1 comment
Assignees

Comments

@vikjung
Copy link

vikjung commented Aug 8, 2014

div tool horizontal layout>
div>Alpha /div>
div flex>Beta (flex) /div>
div>Gamma /div>
/div>

Issue with flex in div for tool bar. if div has tool attribute then the div within doesnt flex

@sorvell sorvell self-assigned this Aug 12, 2014
@sorvell
Copy link
Contributor

sorvell commented Aug 12, 2014

There's not much information here, but I'm going to try to answer this anyway. I'm going to assume you're using core-scaffold since that supports a tool attribute. The elements selected into the core-scaffold's tool area are already in a flex layout so the container isn't necessary. The container itself here has no size and this is why the Beta (flex) div doesn't appear to take up the additional space.

Here's a fix that leaves your outer container in place:

<div tool flex horizontal layout>
  <div>Alpha</div>
  <div flex>Beta(flex)</div>
  <div>Gamma</div>
</div>

If you put this inside a core-scaffold the Beta (flex) div element will flex to fill the tool area.

@sorvell sorvell closed this as completed Aug 12, 2014
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