[Rider] fix live intention popup size miscalculation when it is used with an advertisement text

getSize() == getContentSize() - getAdvertismentComponentHeight()
it ALWAYS added 1x of getAdvertismentComponentHeight() on every resizePopupIfNeeded(), making the popup grow indefinitely

GitOrigin-RevId: 86d0f8a1ea6eeac70291e894f5658332bd7d36b1
This commit is contained in:
Egor.Skrypnikov
2025-09-04 13:59:15 +00:00
committed by intellij-monorepo-bot
parent 8d53f27421
commit 10f431d0d3
@@ -644,9 +644,7 @@ public class ListPopupImpl extends WizardPopup implements ListPopup, NextStepHan
}
private void resizePopupIfNeeded() {
Dimension size = getSize();
if (size == null) return;
Dimension size = getContentSize();
Dimension packedSize = calculateSizeForPack(true, true);
if (packedSize == null) return;