Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
fix scrollable menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Sep 4, 2014
1 parent 70c8bb0 commit 2b1215c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
fill: #000;
}

body /deep/ paper-menu-button[icon="more-vert"]::shadow #dropdown {
max-height: 158px;
}

core-icon {
fill: #fff;
}
Expand Down
6 changes: 6 additions & 0 deletions paper-menu-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,9 @@ core-icon::shadow svg {
border-radius: 3px;
opacity: 0;
}

.paper-menu-button-menu-container {
overflow: auto;
max-height: 100%;
max-width: 100%;
}
8 changes: 5 additions & 3 deletions paper-menu-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@
<div class="paper-menu-button-overlay-ink"></div>
<div id="overlayBg" class="paper-menu-button-overlay-bg"></div>

<core-menu id="menu">
<content></content>
</core-menu>
<div class="paper-menu-button-menu-container">
<core-menu id="menu">
<content></content>
</core-menu>
</div>

</core-dropdown>

Expand Down

0 comments on commit 2b1215c

Please sign in to comment.