Skip to content

Commit

Permalink
Disable Popover GPU acceleration on Windows. (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Bolender authored and Bryan Smith committed Jun 21, 2019
1 parent aa807d2 commit a748602
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions components/popover/popover-base.jsx
Expand Up @@ -74,6 +74,7 @@ export class PopoverBase extends Component {
theme: {
backgroundColor: colors.white,
},
modifiers: {},
styleOverrides: {},
};

Expand Down Expand Up @@ -133,20 +134,28 @@ export class PopoverBase extends Component {
const {
children,
placement: popoverPlacement,
modifiers,
hideArrow,
delay,
theme,
modifiers,
styleOverrides,
eventsEnabled,
positionFixed,
} = this.props;
const { showPopper } = this.state;

const popperModifiers = {
...modifiers,
computeStyle: {
...modifiers.computeStyle,
gpuAcceleration: false,
},
};

const popover = (
<Popper
placement={popoverPlacement}
modifiers={modifiers}
modifiers={popperModifiers}
eventsEnabled={eventsEnabled}
positionFixed={positionFixed}
>
Expand Down

0 comments on commit a748602

Please sign in to comment.