From 706c119c3519a442f26e0b23b8d6b46f0bf5f1f5 Mon Sep 17 00:00:00 2001 From: Victor Verhaagen Date: Tue, 27 Dec 2016 15:13:58 +0100 Subject: [PATCH] =?UTF-8?q?Expose=20`fit-into`=20default=20this=20is=20`wi?= =?UTF-8?q?ndow`=20but=20in=20some=20cases=20you=20want=20to=20use=20anoth?= =?UTF-8?q?er=20`fit-into`=20target.=20This=20is=20in=20general=20handy=20?= =?UTF-8?q?when=20you=E2=80=99re=20using=20`dynamic-align=3Dtrue`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- paper-menu-button.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/paper-menu-button.html b/paper-menu-button.html index 7bb4c74..5244abc 100644 --- a/paper-menu-button.html +++ b/paper-menu-button.html @@ -104,7 +104,7 @@ margin-bottom: -10px; margin-top: 20px; } - + #trigger { cursor: pointer; } @@ -120,6 +120,7 @@ horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" + fit-into="[[fitInto]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" @@ -206,6 +207,13 @@ type: Boolean }, + /** + * The element to fit `this` into. + */ + fitInto: { + type: Object + }, + /** * A pixel value that will be added to the position calculated for the * given `horizontalAlign`. Use a negative value to offset to the