mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
balloon: shadow gets updated on change size
This commit is contained in:
@@ -1330,6 +1330,11 @@ public class BalloonImpl implements Balloon, IdeTooltip.Ui {
|
||||
}
|
||||
|
||||
public void _setBounds(Rectangle bounds) {
|
||||
Rectangle currentBounds = getBounds();
|
||||
if (currentBounds.width != bounds.width || currentBounds.height != bounds.height) {
|
||||
invalidateShadowImage();
|
||||
}
|
||||
|
||||
super.setBounds(bounds);
|
||||
if (myCloseRec.getParent() == null && getParent() != null) {
|
||||
myLayeredPane.add(myCloseRec);
|
||||
@@ -1357,6 +1362,11 @@ public class BalloonImpl implements Balloon, IdeTooltip.Ui {
|
||||
}
|
||||
}
|
||||
|
||||
private void invalidateShadowImage() {
|
||||
myImage = null;
|
||||
myShadow = null;
|
||||
}
|
||||
|
||||
public void repaintButton() {
|
||||
myCloseRec.repaint();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user