summaryrefslogtreecommitdiff
path: root/platform/platform-api/src/com/intellij/ui/components/JBScrollPane.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/platform-api/src/com/intellij/ui/components/JBScrollPane.java')
-rw-r--r--platform/platform-api/src/com/intellij/ui/components/JBScrollPane.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/platform-api/src/com/intellij/ui/components/JBScrollPane.java b/platform/platform-api/src/com/intellij/ui/components/JBScrollPane.java
index 97a42176a25b..51535b67f9af 100644
--- a/platform/platform-api/src/com/intellij/ui/components/JBScrollPane.java
+++ b/platform/platform-api/src/com/intellij/ui/components/JBScrollPane.java
@@ -235,7 +235,7 @@ public class JBScrollPane extends JScrollPane {
}
if (colHead != null) {
Rectangle headerBounds = colHead.getBounds();
- headerBounds.width = viewportBounds.width - headerBounds.x;
+ headerBounds.width = viewportBounds.width;
colHead.setBounds(headerBounds);
}
hideFromView(layout.getCorner(UPPER_RIGHT_CORNER));
@@ -249,7 +249,7 @@ public class JBScrollPane extends JScrollPane {
}
if (rowHead != null) {
Rectangle headerBounds = rowHead.getBounds();
- headerBounds.height = viewportBounds.height - headerBounds.y;
+ headerBounds.height = viewportBounds.height;
rowHead.setBounds(headerBounds);
}