material icon indicating copy to clipboard operation
material copied to clipboard

md-divider not render properlly

Open sweetim opened this issue 11 years ago • 8 comments

Updated to v0.9.6 and my list view item using the divider is not render properly

All my dividers are render to a fixed position

sweetim avatar May 29 '15 07:05 sweetim

I have this issue as well for dividers within md-list-item (may have to do with this md-no-proxy class) - it started v0.9.5 and exists through 0.9.8rc1

atanis avatar Jun 06 '15 06:06 atanis

I am having the same problem. The position of the divider is fixed as the window height. I can see it when scroll down.

kimmoah avatar Jun 11 '15 00:06 kimmoah

The same here, I have solved it putting md-divider outside of md-list-item

<md-list-item> 
    {{content}}
</md-list-item>
<md-divider></md-divider>

tolemac avatar Jun 30 '15 20:06 tolemac

I'm also having this issue.

ultamatt avatar Aug 12 '15 22:08 ultamatt

Wrap your list on a div container and use the md-divider outside the md-list-item as tolemac pointed out.

<md-list>
        <div ng-repeat="filter in listFilters.filters">
            <md-list-item class="md-3-line" layout-margin>
                <md-button class="md-fab md-mini" aria-label="Edit">
                    <md-icon md-font-library="material-icons">mode_edit</md-icon>
                </md-button>
                <div class="md-list-item-text" layout="column">
                    {{filter.content}}
                </div>
            </md-list-item>
            <md-divider></md-divider>
        </div>
</md-list>

There's a css rule making md-list-item md-divider absolute positioned.

vectorderivative avatar Aug 26 '15 17:08 vectorderivative

Same with version 0.10.1, the class "md-no-proxy" is not applied

Yimiprod avatar Sep 02 '15 09:09 Yimiprod

Is this still an issue in 0.11? If so, can someone please provide a Codepen which demonstrates the issue so we can debug it further?

topherfangio avatar Sep 15 '15 22:09 topherfangio

Adding the md-button directive inside md-list-item will reproduce the problem:

http://codepen.io/tsenying/pen/meEXKw

tsenying avatar Sep 21 '15 20:09 tsenying