From 71f6d763897c27684f09daf904db74ee8cfd668f Mon Sep 17 00:00:00 2001 From: Sergei Tachenov Date: Thu, 14 Nov 2024 09:37:52 +0200 Subject: [PATCH] IJPL-171464 Calculate column widths even if find.usages.disable.smart.size is on When we added this key, we completely disabled all resizing logic when Show Usages appears. This works fine for the size of the popup itself, but the column sizes are now all wrong. Adding this one line seems to fix the column sizes without affecting the size of the popup. (cherry picked from commit dd0659caa779f533770451a31ec3807394ab2c66) IJ-CR-149328 GitOrigin-RevId: fd9ea59a1b841ba2ba23f782733c6d8dee574fec --- .../src/com/intellij/find/actions/ShowUsagesAction.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesAction.java b/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesAction.java index 2de8520fa976..26db2ff4133b 100644 --- a/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesAction.java +++ b/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesAction.java @@ -1417,7 +1417,10 @@ public final class ShowUsagesAction extends AnAction implements PopupAction, Hin boolean showCodePreview, int dataSize) { - if (Registry.is("find.usages.disable.smart.size", false)) return; + if (Registry.is("find.usages.disable.smart.size", false)) { + calcMaxWidth(table); + return; + } if (isCodeWithMeClientInstance(popup)) return;