diff --git a/src/shared/behaviors/positionable-dropdown.html b/src/shared/behaviors/positionable-dropdown.html index 45bf208c..c2f799ce 100644 --- a/src/shared/behaviors/positionable-dropdown.html +++ b/src/shared/behaviors/positionable-dropdown.html @@ -68,7 +68,8 @@ if (this.overflow === 'hidden') { panelWidth = targetRect.width + "px"; } else if (this.overflow === 'visible') { - panelWidth = "auto"; + panelRect.width > targetRect.width + panelWidth = (panelRect.width > targetRect.width) ? "auto" : targetRect.width + "px"; } // fitparent & overflowWidth will always trump this.overflow, @@ -79,7 +80,7 @@ panelRect.width = this.$.container.style.width = panelWidth; // if it's an item-recycler, we need to have NO horizontal scrolling - if (this.data) { + if (this.$.itemRecycler) { this.$.itemRecycler.$.constrainer.style.width = panelWidth; this.$.itemRecycler.$.pane.style.overflowY = "auto"; this.$.itemRecycler.$.pane.style.overflowX = "hidden";