Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

chore: update to Popper v2 #2380

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

chore: update to Popper v2 #2380

wants to merge 1 commit into from

Conversation

layershifter
Copy link
Member

No description provided.

Comment on lines +109 to +119
[
/**
* This prevents blurrines in chrome, when the coordinates are odd numbers alternative
* would be to use `fn` and manipulate the computed style or ask popper to fix it but
* since there is presumably only handful of poppers displayed on the page, the
* performance impact should be minimal.
*/
{
name: 'computeStyles',
options: { gpuAcceleration: false },
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be required anymore. Popper rounds to the nearest suitable subpixel, and in addition detects the DPI and uses 2D transforms instead of 3D (to preserve subpixel anti-aliasing).

Comment on lines +120 to +121
{ name: 'flip', options: { padding: 0, flipVariations: true } },
{ name: 'preventOverflow', options: { padding: 0 } },
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seem redundant as they are the same as the defaults

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants