From a923ed822e2f7e5b91b3c967a9df4084a5ce2afa Mon Sep 17 00:00:00 2001 From: Tim Erickson Date: Tue, 5 Dec 2017 20:08:59 -0800 Subject: [PATCH] improve the logic of our dropdown positioning --- src/components/App/Header.js | 4 +++- src/components/UI/Dropdown/Dropdown.css | 3 ++- src/components/UI/Dropdown/Dropdown.js | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/App/Header.js b/src/components/App/Header.js index fa2885c3d50c..1d770fab4fde 100644 --- a/src/components/App/Header.js +++ b/src/components/App/Header.js @@ -65,8 +65,9 @@ export default class Header extends React.Component { { collections.filter(collection => collection.get('create')).toList().map(collection => @@ -90,6 +91,7 @@ export default class Header extends React.Component { : null } { const style = { width: dropdownWidth, + top: dropdownTopOverlap, left: dropdownPosition === 'left' ? 0 : 'auto', right: dropdownPosition === 'right' ? 0 : 'auto', };