StatusText: fix status text not being repaint if a component is painted in a JBViewport

This commit is contained in:
Sergey Savenko
2014-08-26 19:57:41 +04:00
parent 261f29a1b9
commit 1f15a63e5a
@@ -186,7 +186,8 @@ public abstract class StatusText {
}
public void paint(Component owner, Graphics g) {
if (!isStatusVisible() || owner != myOwner) return;
boolean wrongComponent = owner != myOwner && owner != null && owner.getParent() != myOwner;
if (!isStatusVisible() || wrongComponent) return;
Rectangle b = getTextComponentBound();
myComponent.setBounds(0, 0, b.width, b.height);