Skip to content

Commit e45fbe7

Browse files
Johann-SXhmikosR
authored andcommitted
add suggested fix for gpu acceleration
1 parent 16aa057 commit e45fbe7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

site/docs/4.5/components/popovers.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,13 @@ Enable popovers via JavaScript:
139139
{% capture callout %}
140140
##### GPU acceleration
141141

142-
Popovers sometimes appear blurry on Windows 10 devices due to GPU acceleration and a modified system DPI. The workaround for this in v4 is to disable GPU acceleration as needed on your popovers. [See this issue for details and a suggested fix](https://github.com/twbs/bootstrap/issues/22610).
142+
Popovers sometimes appear blurry on Windows 10 devices due to GPU acceleration and a modified system DPI. The workaround for this in v4 is to disable GPU acceleration as needed on your popovers.
143+
144+
Suggested fix:
145+
146+
{% highlight js %}
147+
Popper.Defaults.modifiers.computeStyle.gpuAcceleration = !(window.devicePixelRatio < 1.5 && /Win/.test(navigator.platform))
148+
{% endhighlight %}
143149
{% endcapture %}
144150
{% include callout.html content=callout type="warning" %}
145151

0 commit comments

Comments
 (0)