I am encountering an issue with aligning an input and button on the same line. As a newcomer to using Angular-Material, I have been unable to find any resources or forums that address my specific problem.
One workaround I found was placing the md-button outside of the form and flex area, but this approach disrupts the natural functionality of submitting by hitting enter.
This is the current appearance:
https://i.sstatic.net/BDcCi.png
This is how I would like it to appear:
https://i.sstatic.net/UUeDO.png
How can I achieve this desired layout using Angular-Material?
HTML
<div layout="row" layout-align="center center">
<div class="bannerCenter" flex-sm="90" flex-gt-sm="60">
<div layout="row" layout-align="center end" style="height: 100px;">
<h1><span class="icon-bunny-logo text-purple logo-large"></span><span class="icon-text-logo text-black logo-text-large"></span></h1>
</div>
<md-content class="text-black md-content-transparent" flex layout-padding>
<p class="banner-text banner-text-top">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent sit amet sagittis sapien. Quisque et tincidunt orci. In hac habitasse platea dictumst. Nam luctus leo sit amet aliquet tincidunt. Donec nec elementum nunc. Nam ut pretium elit. Mauris mollis et neque eu rutrum.</p>
<p class="banner-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent sit amet sagittis sapien. Quisque et tincidunt orci. In hac habitasse platea dictumst. Nam luctus leo sit amet aliquet tincidunt. Donec nec elementum nunc. Nam ut pretium elit. Mauris mollis et neque eu rutrum.
</p>
<p class="banner-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent sit amet sagittis sapien. Quisque et tincidunt orci. In hac habitasse platea dictumst. Nam luctus leo sit amet aliquet tincidunt. Donec nec elementum nunc. Nam ut pretium elit. Mauris mollis et neque eu rutrum.
</p>
</md-content>
<div class="banner-text-top" layout="row" layout-align="center center" layout-wrap>
<div flex="65">
<form name="subscriptionForm">
<md-input-container class="md-block">
<label class="text-black">Email Address</label>
<input class="bigClass text-black" ng-model="something.email" type="email" ng-required="true">
</md-input-container>
<md-button type="submit" class="md-raised" ng-click="something.save(newSomething); newSomething='';">Submit</md-button>
</form>
</div>
</div>
</div>
</div>