diff -r c7261870fdfd editor.lib/apichanges.xml --- a/editor.lib/apichanges.xml Wed Dec 09 12:27:09 2009 +0100 +++ b/editor.lib/apichanges.xml Mon Dec 14 19:54:26 2009 +0100 @@ -104,6 +104,21 @@ + + Add protected boolean field hideBottomPadding to be able to control adding bottom padding. + + + + + +

+ Add protected boolean field hideBottomPadding. Subclasses can set this field + to true to avoid adding bottom padding to view. +

+
+ +
+ Adding interface enabling initialization of lookups performed by SideBarFactory implementations. diff -r c7261870fdfd editor.lib/nbproject/project.properties --- a/editor.lib/nbproject/project.properties Wed Dec 09 12:27:09 2009 +0100 +++ b/editor.lib/nbproject/project.properties Mon Dec 14 19:54:26 2009 +0100 @@ -39,7 +39,7 @@ javac.compilerargs=-Xlint:unchecked javac.source=1.5 -spec.version.base=1.45.0 +spec.version.base=1.46 is.autoload=true javadoc.arch=${basedir}/arch.xml diff -r c7261870fdfd editor.lib/src/org/netbeans/editor/DrawEngineFakeDocView.java --- a/editor.lib/src/org/netbeans/editor/DrawEngineFakeDocView.java Wed Dec 09 12:27:09 2009 +0100 +++ b/editor.lib/src/org/netbeans/editor/DrawEngineFakeDocView.java Mon Dec 14 19:54:26 2009 +0100 @@ -63,7 +63,7 @@ this.fakeStartOffset = startOffset; this.fakeEndOffset = endOffset; setEstimatedSpan(false); - + hideBottomPadding = true; } @Override diff -r c7261870fdfd editor.lib/src/org/netbeans/lib/editor/view/GapDocumentView.java --- a/editor.lib/src/org/netbeans/lib/editor/view/GapDocumentView.java Wed Dec 09 12:27:09 2009 +0100 +++ b/editor.lib/src/org/netbeans/lib/editor/view/GapDocumentView.java Mon Dec 14 19:54:26 2009 +0100 @@ -155,6 +155,9 @@ private int damageRangeStartOffset; private int damageRangeEndOffset; + /** Set to true to avoid adding bottom padding */ + protected boolean hideBottomPadding; + /** * Construct a view intended to cover the whole document. * @@ -168,10 +171,11 @@ super(elem, View.Y_AXIS); clearDamageRangeBounds(); } - + + @Override public float getPreferredSpan(int axis) { float span = super.getPreferredSpan(axis); - if (axis == View.Y_AXIS) { + if (!hideBottomPadding && (axis == View.Y_AXIS)) { // Add an extra span to avoid typing at the bottom of the screen // by adding virtual height Container c = getContainer();