IDEA-310787 java.lang.IllegalArgumentException: Width (0) and height (24) cannot be <= 0

GitOrigin-RevId: 0fdd037a7cab590ff33aa118c8b7210ef2d80421
This commit is contained in:
Pavel Porvatov
2023-01-19 11:51:08 +00:00
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();