纸质菜单按钮内容显示在app-header下

时间:2017-06-05 07:28:52

标签: javascript polymer-1.0

我有一个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时

快照

when clicked on member name 2 when clicked on member name 6 when clicked on member name 4

0 个答案:

没有答案