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.

Bug 255128 - code fold tooltip don't update
Summary: code fold tooltip don't update
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.2
Hardware: All All
: P4 normal (vote)
Assignee: Miloslav Metelka
Depends on:
Reported: 2015-09-09 10:40 UTC by amobilia
Modified: 2016-08-30 03:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

Test case (454 bytes, application/octet-stream)
2015-09-09 10:40 UTC, amobilia

Note You need to log in before you can comment on or make changes to this bug.
Description amobilia 2015-09-09 10:40:37 UTC
Created attachment 156007 [details]
Test case

Bug linked to the synergy test PHP Editor -> "Verify code fold tooltip"

Steps to reproduce :
1. Create a new PHPWebPage
2. Add on the <?php... ?> the code :
        if (true) {
            echo "test";
        } else {
            echo "test3";
3. Collapse all code fold.
4. Move mouse cursor onto the first {...} folding symbol.
5. Move mouse on the line (without going up or down, just horizontally !) and go to the second {...} folding symbol.

What's happened :
The pop-up isn't updated and still display the code on the first {...} folding symbol

What's expected :
The pop-up is updated with the code on the second {...} folding symbol
Comment 1 Tomas Mysik 2016-06-10 08:12:48 UTC
Not PHP specific IMHO. Please evaluate, thanks.
Comment 2 Svata Dedic 2016-08-11 08:15:43 UTC
IMHO minor. Caused by computation of 'ignored' bounding rectangle, which equals to bounding rectangle covering the placeholder text AND the tooltip plus some margins derived from the width of the 'editor view under the caret' which happens to be the folding placeholder.

Reassigning to editor painting/printing - I have no API to affect the margin