Describe the bug
When rendering a Dropdown component outside Gutenberg, the popover content is wrong positioned.
To Reproduce
Execute the code below in a new React project after installing @wordpress/components.
import React from 'react';
import ReactDOM from 'react-dom';
import { Button, Dropdown } from '@wordpress/components';
import '@wordpress/components/build-style/styles.css';
const MyDropdown = () => (
<Dropdown
position="bottom right"
renderToggle={ ( { isOpen, onToggle } ) => (
<Button isPrimary onClick={ onToggle } aria-expanded={ isOpen }>
Toggle Popover!
</Button>
) }
renderContent={ () => (
<div>
This is the content of the popover.
</div>
) }
/>
);
ReactDOM.render(
<MyDropdown />,
document.getElementById( 'root' )
);
Expected behavior
The popover content should be displayed below the button.
Screenshots

Desktop:
- OS: macOS High Sierra
- Browser Chrome
- Version 67
Additional context
Issue found while working on #8338 and Automattic/wp-calypso#26367
Describe the bug
When rendering a
Dropdowncomponent outside Gutenberg, the popover content is wrong positioned.To Reproduce
Execute the code below in a new React project after installing
@wordpress/components.Expected behavior
The popover content should be displayed below the button.
Screenshots

Desktop:
Additional context
Issue found while working on #8338 and Automattic/wp-calypso#26367