mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
StatusText: fix status text not being repaint if a component is painted in a JBViewport
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user