mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user