aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/top_bar
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-29 06:07:28 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-29 06:07:28 +0800
commitde11b62e30270ec72ad42c510989b5698339e590 (patch)
tree36d9a76f9872ee9d488b9e47a291c3e17af4efe2 /packages/website/ts/components/top_bar
parent8e14e65b60bc4b94ba686c7bb5467bb4a5e2c645 (diff)
downloaddexon-0x-contracts-de11b62e30270ec72ad42c510989b5698339e590.tar.gz
dexon-0x-contracts-de11b62e30270ec72ad42c510989b5698339e590.tar.zst
dexon-0x-contracts-de11b62e30270ec72ad42c510989b5698339e590.zip
Revert "Have new Popover component working in React 16"
This reverts commit 5785ec0713c39466b3a6a171f5f0a2d38207b44b.
Diffstat (limited to 'packages/website/ts/components/top_bar')
-rw-r--r--packages/website/ts/components/top_bar/provider_display.tsx2
-rw-r--r--packages/website/ts/components/top_bar/top_bar.tsx2
2 files changed, 4 insertions, 0 deletions
diff --git a/packages/website/ts/components/top_bar/provider_display.tsx b/packages/website/ts/components/top_bar/provider_display.tsx
index 0a5c61776..806eaeea5 100644
--- a/packages/website/ts/components/top_bar/provider_display.tsx
+++ b/packages/website/ts/components/top_bar/provider_display.tsx
@@ -61,6 +61,8 @@ export class ProviderDisplay extends React.Component<ProviderDisplayProps, Provi
<DropDown
activeNode={activeNode}
popoverContent={this._renderPopoverContent()}
+ anchorOrigin={{ horizontal: 'middle', vertical: 'bottom' }}
+ targetOrigin={{ horizontal: 'middle', vertical: 'top' }}
zDepth={1}
/>
</div>
diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx
index 3eef17746..8580c3a6e 100644
--- a/packages/website/ts/components/top_bar/top_bar.tsx
+++ b/packages/website/ts/components/top_bar/top_bar.tsx
@@ -276,6 +276,8 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
<DropDown
activeNode={activeNode}
popoverContent={popoverContent}
+ anchorOrigin={{ horizontal: 'middle', vertical: 'bottom' }}
+ targetOrigin={{ horizontal: 'middle', vertical: 'top' }}
style={styles.menuItem}
/>
<TopBarMenuItem