Still needs to work in 0.81... Fix #12
This commit is contained in:
parent
96f29045e0
commit
8555379596
@ -122,9 +122,21 @@ class FoldRow extends Polymer.Element {
|
||||
}
|
||||
this.items.push(row);
|
||||
if(row.tagName === 'HUI-SECTION-ROW'){
|
||||
row.updateComplete.then( () => {
|
||||
if(row.updateComplete) {
|
||||
row.updateComplete.then( () => {
|
||||
row.shadowRoot.querySelector('.divider').style.marginRight = '-53px';
|
||||
if (!this.parentElement.previousElementSibling) {
|
||||
row.shadowRoot.querySelector('.divider').style.visibility = 'hidden';
|
||||
row.shadowRoot.querySelector('.divider').style.marginTop = '0';
|
||||
}
|
||||
});
|
||||
} else {
|
||||
row.shadowRoot.querySelector('.divider').style.marginRight = '-53px';
|
||||
});
|
||||
if (!this.parentElement.previousElementSibling) {
|
||||
row.shadowRoot.querySelector('.divider').style.visibility = 'hidden';
|
||||
row.shadowRoot.querySelector('.divider').style.marginTop = '0';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
_addRow(row, data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user