From 4486a6c55dfa33a4ee1fad950d33b41d4b10e7eb Mon Sep 17 00:00:00 2001 From: "Denis.Zhdanov" Date: Mon, 30 Jul 2012 15:24:46 +0400 Subject: [PATCH] IDEA-89417 Editor: Avoid VCS hint paint artifacts Looks like the problem is that editor scroll animator has enough time to tick before paint request scheduled by the DirtyRegionManager is actually executed --- platform/platform-impl/src/com/intellij/ui/LightweightHint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/ui/LightweightHint.java b/platform/platform-impl/src/com/intellij/ui/LightweightHint.java index cca7b7f7105f..444f60c09046 100644 --- a/platform/platform-impl/src/com/intellij/ui/LightweightHint.java +++ b/platform/platform-impl/src/com/intellij/ui/LightweightHint.java @@ -366,7 +366,7 @@ public class LightweightHint extends UserDataHolderBase implements Hint { LayoutFocusTraversalPolicyExt.setOverridenDefaultComponent(null); } - layeredPane.repaint(bounds.x, bounds.y, bounds.width, bounds.height); + layeredPane.paintImmediately(bounds.x, bounds.y, bounds.width, bounds.height); } } }