This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 130014
Collapse All | Expand All

(-)a/editor.lib/src/org/netbeans/editor/GlyphGutter.java (-2 / +2 lines)
Lines 608-618 public class GlyphGutter extends JCompon Link Here
608
    /** Check whether it is not necessary to resize the gutter */
608
    /** Check whether it is not necessary to resize the gutter */
609
    protected void checkSize() {
609
    protected void checkSize() {
610
        int count = getLineCount();
610
        int count = getLineCount();
611
        if (count > highestLineNumber) {
611
        if (count != highestLineNumber) {
612
            highestLineNumber = count;
612
            highestLineNumber = count;
613
        }
613
        }
614
        Dimension dim = getPreferredSize();
614
        Dimension dim = getPreferredSize();
615
        if (getWidthDimension() > dim.width ||
615
        if (getWidthDimension() != dim.width ||
616
            getHeightDimension() > dim.height) {
616
            getHeightDimension() > dim.height) {
617
            resize();
617
            resize();
618
        }
618
        }

Return to bug 130014