Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Linux version 2.6.31-16-generic running on i386; UTF-8; en_US (nb)
Fold preview (popup which is shown when hovering mouse over collapsed fold) takes too much space if the folded code is quite short. See the screenshot
Created attachment 92254 [details]
Looks ugly. My guess is that the bottom part is the padding that we added some time ago to make editing at a position close to the end of a document slightly more convenient.
It is regression because bottom padding was added to editor view. It should be disabled for tooltip view.
Created attachment 92555 [details]
Marku, wouldn't it be possible to pass the boolean flag simply to the constructor of GapDocumentView? Having protected non-final field that's supposed to be modified by subclasses does not sound like a good API design to me.
Created attachment 92601 [details]
Patch with added constructor parameter
Field is made final to be able to set it just once in constructor.
Integrated into 'main-golden', will be available in build *200912230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Marek Slama <email@example.com>
Log: #178284: Fold preview takes too much space.