mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
affect visibility rect only under header IDEA-230387
GitOrigin-RevId: f285cae00872912b3ab5736e41f23e38c0a69f7f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
571b1a537b
commit
e535bbd906
@@ -80,7 +80,11 @@ public class GradientViewport extends JBViewport {
|
||||
Component header = getHeader();
|
||||
if (header != null) {
|
||||
int h = header.getPreferredSize().height;
|
||||
bounds.y -= h;
|
||||
if (bounds.y < h) {
|
||||
bounds = new Rectangle(bounds);
|
||||
bounds.y -= h;
|
||||
bounds.height += h;
|
||||
}
|
||||
}
|
||||
super.scrollRectToVisible(bounds);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user