Skip to content

Commit

Permalink
Additional conditions for dropdown panel
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykoerber committed Sep 3, 2015
1 parent b75bf63 commit 0e64c7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/shared/behaviors/positionable-dropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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";
Expand Down

0 comments on commit 0e64c7f

Please sign in to comment.