From 6af47ef233efbf5907dfaea619f93c2b70735f24 Mon Sep 17 00:00:00 2001 From: Victor Verhaagen Date: Sun, 1 Jan 2017 22:04:31 +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`=20and=20?= =?UTF-8?q?the=20element=20where=20you=20want=20your=20`paper-dropdown-men?= =?UTF-8?q?u`=20want=20to=20fit=20into=20=20is=20=5Fnot=5F=20`window`=20Th?= =?UTF-8?q?is=20only=20will=20work=20if=20issue=20[108=20of=20paper-menu-b?= =?UTF-8?q?utton](https://github.com/PolymerElements/paper-menu-button/iss?= =?UTF-8?q?ues/108)=20is=20fixed,=20because=20`paper-dropdown-menu`=20is?= =?UTF-8?q?=20using=20`paper-menu-button`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- paper-dropdown-menu-light.html | 8 ++++++++ paper-dropdown-menu.html | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/paper-dropdown-menu-light.html b/paper-dropdown-menu-light.html index edaabf8..8dee7b8 100644 --- a/paper-dropdown-menu-light.html +++ b/paper-dropdown-menu-light.html @@ -285,6 +285,7 @@ no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" + fit-into="[[fitInto]]" opened="{{opened}}" close-on-activate allow-outside-scroll="[[allowOutsideScroll]]"> @@ -424,6 +425,13 @@ value: 'right' }, + /** + * The element to fit `this` into. + */ + fitInto: { + type: Object + }, + /** * The orientation against which to align the menu dropdown * vertically relative to the dropdown trigger. diff --git a/paper-dropdown-menu.html b/paper-dropdown-menu.html index 06f4ab8..8d44125 100644 --- a/paper-dropdown-menu.html +++ b/paper-dropdown-menu.html @@ -97,6 +97,7 @@ on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" + fit-into="[[fitInto]]" close-on-activate allow-outside-scroll="[[allowOutsideScroll]]">