jcommon icon indicating copy to clipboard operation
jcommon copied to clipboard

VerticalLayout minimum+preferredLayoutSize insets are added twice

Open tillwoitendorf opened this issue 3 years ago • 0 comments

both methods starts with declaring width and height as follows

        int height = ins.top + ins.bottom;
        int width = ins.left + ins.right;

and adding the insets again in the return statement

        return new Dimension(width + ins.left + ins.right,
            height + ins.top + ins.bottom);

tillwoitendorf avatar Mar 03 '21 12:03 tillwoitendorf