Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

material-input and material-button next to each other using all space #21

Closed
sturmf opened this issue Nov 20, 2016 · 1 comment
Closed

Comments

@sturmf
Copy link

sturmf commented Nov 20, 2016

Is there a way to put a material-input next to a material-button and let the input use up all available space horizontally? Something like flex-grow or similar?

@sturmf
Copy link
Author

sturmf commented Nov 23, 2016

Ok I now found a solution, which probbaly is the preferred way to do it? I was a bit too much focused on the material button properties themself where I found an expand and size in pixel property.

<div style="display:flex; flex-direction:row; align-items:baseline">
    <material-input style="flex:1" required label="Label"></material-input>
    <material-button id="addButton" raised class="blue">Add</material-button>
</div>

@sturmf sturmf closed this as completed Nov 23, 2016
lejard-h pushed a commit to leftyio/angular_components that referenced this issue Oct 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant