Open
Description
Steps to reproduce
- Using @beta7
- Create a
md-app
with amd-app-content
- Create a list longer than the viewport with a floating action button which has
position: fixed;
Which browser?
Chrome latest, all browsers will be affected though
What is expected?
I would expect the floating action button to scroll with the viewport as it has a fixed position
What is actually happening?
The md-app-container
has a class .md-app-container
which has transform: translate3D(0,0,0)
which causes fixed positions to not work.
Further details here: https://stackoverflow.com/questions/15194313/transform3d-not-working-with-position-fixed-children
Reproduction Link
I can't reproduce on CodePen as for some reason md-app
isn't registered properly in the pen but this template will allow you to reproduce locally.
<div id="app" style="height:100vh">
<md-app>
<md-app-toolbar class="md-primary">
<span class="md-title">Fixed is Broken</span>
</md-app-toolbar>
<md-app-content>
<ul>
<li v-for="i in Array.from({length: 200}, (v, k) => k)">{{i}}</li>
</ul>
<md-button class="md-fab md-fab-bottom-right" style="position: fixed;">
<md-icon>search</md-icon>
</md-button>
</md-app-content>
</md-app>
</div>