processing / p5.js-editor

Deprecated desktop editor for p5.js
https://p5js.org
MIT License
339 stars 91 forks source link

Icon for collapsing multiple lines of code is rendered one row below its active area #258

Open bags2001 opened 7 years ago

bags2001 commented 7 years ago

This doesn't always happen for /* ... */ multiple line comments and I couldn't really see what specific things made it happen. The small arrow icon is rendered one line below where you actually need to click to collapse a multi-line comment. The mouse hover behavior is following the icon - also one line below where it needs to be. Clicking on the area (Edit: arrow) does nothing, but clicking on the area where it should be (the line with the /*) will collapse the comment.

On the attached picture the top comment block has the icon in the correct position but the bottom comment block has the bug.

EDIT: Seems to be caused when the beginning of the collapsible chunk starts after line 100. This bug is not specific to just comments, but all collapsible stuff (loops, ifs, etc). Title has been chanced to reflect this.

p5editorcommentbug