我有一个paper-item列表,每个列表上都有paper-menu-button
dynamic-align
属性设置为true。它在大多数情况下都能正常工作,但有些时候菜单会在app-header
之下,并且无法访问该选项。
下面的演示代码和快照
<template is="dom-repeat" items="{{teamMembers}}">
<div role="listbox">
<paper-icon-item class="listbox-item">
<fop-avatar string="A"></fop-avatar>
<paper-item-body class="item-details">
<div class="name">member name [[index]]</div>
<div class="title">member title</div>
</paper-item-body>
<paper-menu-button style="color:#0B746E;" dynamic-align="true">
<paper-icon-button style="height: 24px;width:24px;" icon="help" class="dropdown-trigger" alt="menu"></paper-icon-button>
<paper-menu style="padding: 0;" class="dropdown-content" on-iron-activate="_modifyRolesQueues">
<paper-item> option A </paper-item>
<paper-item> option B </paper-item>
<paper-item> option C </paper-item>
<paper-item> option D </paper-item>
<paper-item> option E </paper-item>
<paper-item> option F </paper-item>
<paper-item> option G </paper-item>
</paper-menu>
</paper-menu-button>
</paper-icon-item>
</div>
</template>
单击成员名称2,6和4时快照