mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-310787 java.lang.IllegalArgumentException: Width (0) and height (24) cannot be <= 0
GitOrigin-RevId: 0fdd037a7cab590ff33aa118c8b7210ef2d80421
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1f8fc18138
commit
c657be7374
@@ -401,6 +401,9 @@ public abstract class AbstractExpandableItemsHandler<KeyType, ComponentType exte
|
||||
height += borderSize * 2;
|
||||
if (selectablePanel != null) {
|
||||
width -= selectablePanel.getSelectionInsets().right;
|
||||
if (width <= 0) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
myImage = UIUtil.createImage(myComponent, width, height, BufferedImage.TYPE_INT_ARGB);
|
||||
g = myImage.createGraphics();
|
||||
|
||||
Reference in New Issue
Block a user