mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
IJPL-172384 Intellij IDEA 2024.3 freezes on opening Context Menu (Opt + Enter) using Catppuccin Latte or Gerry* Light themes
(cherry picked from commit 962c0efacc7ddde78d5610b9c79a409c23471b4c) IJ-CR-154778 GitOrigin-RevId: 75f41a865282f6a6110a9eae000bd95cad6ad9a0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ab6b288cae
commit
be4ffdc36a
@@ -34,6 +34,8 @@ import com.intellij.ui.popup.PopupPositionManager.Position.RIGHT
|
||||
import com.intellij.ui.popup.PopupPositionManager.PositionAdjuster
|
||||
import com.intellij.ui.popup.PopupUpdateProcessor
|
||||
import com.intellij.ui.popup.util.PopupImplUtil
|
||||
import com.intellij.ui.util.height
|
||||
import com.intellij.ui.util.width
|
||||
import com.intellij.util.cancelOnDispose
|
||||
import com.intellij.util.ui.UIUtil
|
||||
import kotlinx.coroutines.*
|
||||
@@ -97,10 +99,9 @@ class IntentionPreviewPopupUpdateProcessor internal constructor(
|
||||
|
||||
component.addComponentListener(object : ComponentAdapter() {
|
||||
override fun componentResized(e: ComponentEvent?) {
|
||||
var size = popup.size
|
||||
size = Dimension(size.width.coerceAtLeast(MIN_WIDTH), size.height)
|
||||
popup.content.preferredSize = size
|
||||
popup.size = size
|
||||
val size = popup.size
|
||||
val insets = popup.content.insets
|
||||
popup.size = Dimension((size.width - insets.width).coerceAtLeast(MIN_WIDTH), size.height - insets.height)
|
||||
adjustPosition(originalPopup, true)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -2185,9 +2185,7 @@ public class AbstractPopup implements JBPopup, ScreenAreaConsumer, AlignedPopup
|
||||
size = window.getSize(); // use current window size
|
||||
}
|
||||
else {
|
||||
if (!Registry.is("ide.popup.fix.ijpl172384", false)) {
|
||||
JBInsets.addTo(size, insets);
|
||||
}
|
||||
JBInsets.addTo(size, insets);
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Update content preferred size: width = " + size.width + " height = " + size.height);
|
||||
}
|
||||
|
||||
@@ -62,8 +62,6 @@ ide.forcedShowTooltip.description=Shortcut for forced show tooltip.
|
||||
|
||||
ide.popup.auto.delay=500
|
||||
ide.popup.auto.delay.description=The delay in milliseconds before a sub-popup is automatically shown.
|
||||
ide.popup.fix.ijpl172384=false
|
||||
ide.popup.fix.ijpl172384.description=Fix of IJPL-172384. The key will be removed after the verification
|
||||
ide.instant.shutdown=true
|
||||
ide.instant.shutdown.description=Hides all windows immediately after a user invoked Exit action
|
||||
ide.popup.navigation.via.actions=true
|
||||
|
||||
Reference in New Issue
Block a user