聚合物中铁数据表的表格单元后面隐藏的Popover组件 [英] Popover component hiding behind the table cells of Iron data table in polymer
本文介绍了聚合物中铁数据表的表格单元后面隐藏的Popover组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
推荐答案
不好的消息是它是iron-list
问题(即使用z-translation
的iron-list
).
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;');
});
},
只需在此处传递您的表ID,就可以完成工作...
Just pass your table id there and that should do the job...
这篇关于聚合物中铁数据表的表格单元后面隐藏的Popover组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文