Fix ItemDetails pinned pane with custom sections
This commit is contained in:
parent
ee6b9d7af7
commit
751457268b
1 changed files with 8 additions and 1 deletions
|
@ -113,11 +113,14 @@
|
|||
}
|
||||
|
||||
set pinnedPane(val) {
|
||||
if (!val || !this.getEnabledPane(val)) {
|
||||
if (val && !this.getEnabledPane(val)) {
|
||||
// Store pinned pane because custom sections may not be ready yet
|
||||
this._pendingPinnedPane = val;
|
||||
val = '';
|
||||
}
|
||||
this.setAttribute('pinnedPane', val);
|
||||
if (val) {
|
||||
this._pendingPinnedPane = '';
|
||||
this._pinnedPaneMinScrollHeight = this._getMinScrollHeightForPane(this.getEnabledPane(val));
|
||||
}
|
||||
this.sidenav.updatePaneStatus(val);
|
||||
|
@ -303,6 +306,10 @@
|
|||
this._intersectionOb.observe(elem);
|
||||
this.sidenav.addPane(paneID);
|
||||
}
|
||||
// Update pending pinned pane
|
||||
if (this._pendingPinnedPane && this.getEnabledPane(this._pendingPinnedPane)) {
|
||||
this.pinnedPane = this._pendingPinnedPane;
|
||||
}
|
||||
}
|
||||
|
||||
renderCustomHead(callback) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue