From 2899efae3d66e9e284cd01f7940ec3ce82098154 Mon Sep 17 00:00:00 2001 From: Jan Miksovsky Date: Thu, 25 Aug 2016 16:33:09 -0700 Subject: [PATCH 1/2] Prevent menu content from wrapping by default to avoid re-wrapping during animation. Fixes #56. --- paper-menu-button.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/paper-menu-button.html b/paper-menu-button.html index 8fba201..252feed 100644 --- a/paper-menu-button.html +++ b/paper-menu-button.html @@ -93,6 +93,11 @@ @apply(--paper-menu-button-content); } + .dropdown-content ::content > * { + /* Ensure items are full width so they don't wrap during animation. */ + white-space: nowrap; + } + :host([vertical-align="top"]) .dropdown-content { margin-bottom: 20px; margin-top: -10px; @@ -126,7 +131,7 @@ allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled"> -