聚合物铁单不随滚轮滚动

时间:2018-07-23 20:18:11

标签: polymer polymer-2.x iron-list

因此,基本上,我无法使我的清单随滚轮滚动。一切显示正常,但滚轮不执行任何操作。我可以抓住滚动条并浏览我的内容,也可以居中单击我的滚轮以启用自动滚动。所有内容也正确显示。

这是我所拥有的要素:

<paper-dialog style="70vw" entry-animation="scale-up-animation" exit-animation="fade-out-animation"  no-cancel-on-outside-click>
    <iron-list style="height: 80vh" items="{{allIcons}}" as="iconSets">
      <template>
        <div>
          <h3>{{iconSets.Key}}</h3>
          <paper-listbox attr-for-selected="name" selected="{{style.icon}}">
            <template is="dom-repeat" items="{{iconSets.Icons}}" as="icons">
              <iron-icon name="{{icons}}" icon="{{icons}}" style="color:#222; height:4vh; width:4vh; cursor:pointer; padding:6px" on-click="moreIconsSelection"></iron-icon>
            </template>
          </paper-listbox>
          <hr/>
        </div>
      </template>
    </iron-list>
    <div class="buttons">
      <paper-button on-click="moreIconsClose" style="background-color:#222; color:white; float:right; margin-top:24px">Back</paper-button>
    </div>
</paper-dialog>

使用单击Java脚本功能的按钮单击即可打开此纸张对话框。我假设问题出在纸质对话框和顶部的铁皮表之间的某些样式问题上,因为内容本身很好。

同样,所有数据都正确加载,我似乎无法弄清楚为什么滚轮不能用于导航内容。任何建议将不胜感激!

谢谢

0 个答案:

没有答案
相关问题