From 2fe580337333f55b3f57e26c44a25d39e9ecc03e Mon Sep 17 00:00:00 2001 From: Pascal LE QUANG Date: Tue, 10 Oct 2017 11:28:06 +0200 Subject: [PATCH] Added fitInto property, forwarded to underlying paper-menu-button. Fixes #218. Added a demo and test --- demo/index.html | 40 ++++++++++++++++++++ paper-dropdown-menu-light.html | 9 +++++ paper-dropdown-menu.html | 11 +++++- test/paper-dropdown-menu-light.html | 58 ++++++++++++++++++++++++++++- test/paper-dropdown-menu.html | 56 ++++++++++++++++++++++++++++ 5 files changed, 172 insertions(+), 2 deletions(-) diff --git a/demo/index.html b/demo/index.html index 0cd7c10..ea05b6d 100644 --- a/demo/index.html +++ b/demo/index.html @@ -42,6 +42,13 @@ width: 200px; margin-right: 20px; } + + #fitIntoContainer { + height: 150px; + width: 100%; + text-align: center; + border: 1px solid black; + } @@ -259,6 +266,39 @@

You can style a paper-dropdown-menu using custom properties

+ +

Fit the dropdown into a container

+ + + + diff --git a/test/paper-dropdown-menu.html b/test/paper-dropdown-menu.html index 4c74e02..e4a7b73 100644 --- a/test/paper-dropdown-menu.html +++ b/test/paper-dropdown-menu.html @@ -21,6 +21,17 @@ + + @@ -58,6 +69,20 @@ + + + +