mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
deprecate the hack but restore the old behavior (IDEA-234129)
Also reverts JRuby facet UI fix (temporary..) GitOrigin-RevId: b2dfc7376f01d484e00246378da644132b5d3c6b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4def5e622d
commit
fb9825c51a
@@ -7,7 +7,6 @@ import com.intellij.icons.AllIcons;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.ui.GraphicsConfig;
|
||||
import com.intellij.openapi.ui.Splitter;
|
||||
import com.intellij.openapi.util.*;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
@@ -2229,10 +2228,14 @@ public final class UIUtil {
|
||||
return toRender;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated This method is a hack. Please avoid it and create borderless {@code JScrollPane} manually using
|
||||
* {@link com.intellij.ui.ScrollPaneFactory#createScrollPane(Component, boolean)}.
|
||||
*/
|
||||
@Deprecated
|
||||
public static void removeScrollBorder(final Component c) {
|
||||
JBIterable<JScrollPane> scrollPanes = uiTraverser(c)
|
||||
.expand(o -> o == c || o instanceof JPanel || o instanceof JLayeredPane)
|
||||
.expand(o -> !(o instanceof Splitter)) // temp solution for jruby facet ui
|
||||
.filter(JScrollPane.class);
|
||||
for (JScrollPane scrollPane : scrollPanes) {
|
||||
Integer keepBorderSides = ComponentUtil.getClientProperty(scrollPane, KEEP_BORDER_SIDES);
|
||||
|
||||
Reference in New Issue
Block a user