violetlib/vaqua

Excessive repaints due to double rowHeight setting in AquaTreeUI

karlvr opened this issue · 1 comments

AquaTreeUI's updateCellSizes method installs a rowHeight property twice with different values. This causes an infinite loop of repainting in my application. I presume this is intentional? Commenting out the first installProperty resolves the infinite repaint for me. Is it intentional? Shall I do some more investigation into the infinite loop?

    protected void updateCellSizes() {
        int h = Math.max(tree.getRowHeight(), -1);
        LookAndFeel.installProperty(tree, "rowHeight", h + 1);
        LookAndFeel.installProperty(tree, "rowHeight", h);
        updateSize();
    }