angular/material — pull request #1085 by mzbyszynski (2014-12-31 19:35:03+00:00)
Title: fix(sticky): sticky subheader no longer behind toolbar on Chrome

For browsers that do not support `position: sticky` the `.md-sticky-clone` will now appear below an `md-toolbar` if
one is adjacent to the `md-content` element that contains the sticky element (most likely an `md-subheader`), instead
of behind it. Also updated documentation on `$mdSticky` to highlight dependency on `md-content`.

Here is a plunkr show the defect (using Chrome): http://plnkr.co/edit/cIYP7m?p=preview
Here is a plunkr with my fix: http://plnkr.co/edit/XM4R6T?p=preview

_Two caveats:_
1. I tried to get `sticky.spec.js` working but `$mdSticky` has changed significantly since those tests were written/commented
out and I ran out of steam trying to figure out how to retrofit the old tests onto the current service. I was thinking of writing
some tests from scratch, particularly to test the fix in this PR, but they would likely not be compatible with the old tests so I
just left them out. If you would prefer that I add new tests to this PR then let me know!
2. I had to add some css to adjust the position of the sticky clone when a `md-toolbar` is present. I wasn't sure where to put this,
since it related to both the toolbar and the sticky components, but I decided on the `toolbar.scss` since I needed to reference
some of the toolbar scss variables. Let me know if there is a different way you would like to structure this.

All feedback and improvements welcome!

Closes #580
Closes #466