This commit is contained in:
Alexey Kudravtsev
2014-02-21 17:50:46 +04:00
parent 4715a4215e
commit ca75131f06
@@ -238,14 +238,14 @@ class UsageViewTreeCellRenderer extends ColoredTreeCellRenderer {
public RowLocation isRowVisible(int row, @NotNull Rectangle visibleRect) {
Dimension pref;
if (cachedPreferredSize == null) {
pref = cachedPreferredSize = getPreferredSize();
cachedPreferredSize = pref = getPreferredSize();
}
else {
pref = cachedPreferredSize;
}
pref.width = Math.max(visibleRect.width, pref.width);
myRowBoundsCalled = true;
final JTree tree = getTree();
JTree tree = getTree();
final Rectangle bounds = tree == null ? null : tree.getRowBounds(row);
myRowBoundsCalled = false;
int y = bounds == null ? 0 : bounds.y;