Skip to content

Commit

Permalink
fix text auto layout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Feb 24, 2017
1 parent 9edc5af commit fd1fdd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Trigger.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ const Trigger = React.createClass({
// Make sure default popup container will never cause scrollbar appearing
// https://github.com/react-component/trigger/issues/41
popupContainer.style.position = 'absolute';
popupContainer.style.top = '-9999px';
popupContainer.style.left = '-9999px';
popupContainer.style.top = '0';
popupContainer.style.left = '0';
popupContainer.style.width = '100%';
const mountNode = instance.props.getPopupContainer ?
instance.props.getPopupContainer(findDOMNode(instance)) : document.body;
mountNode.appendChild(popupContainer);
Expand Down

0 comments on commit fd1fdd0

Please sign in to comment.