Popover component hiding behind the table cells of

2019-09-08 12:06发布

2条回答
Luminary・发光体
2楼-- · 2019-09-08 12:46

If your z-index is properly set, check the background-color, it may be set to transparent.

查看更多
够拽才男人
3楼-- · 2019-09-08 12:47

Well, bad news is that it's iron-list issue (namely iron-list using z-translation).

Good news is that there is kind of a workaround for that... I had the same problem and what I ended up with was a behavior (but you can make put this in your component) that has something like:

tableListOverflowVisible: function (...tables) {
        tables.forEach((id) => {
          if (typeof id !== 'string') {
            return;
          }

          const table = this.$[id];

          if (!table) {
            return;
          }

          Polymer
            .dom(table)
            .node.querySelector('iron-list')
            .setAttribute('style', 'overflow: visible !important;');
        });
      },

Just pass your table id there and that should do the job...

查看更多
登录 后发表回答