p5.js-editor icon indicating copy to clipboard operation
p5.js-editor copied to clipboard

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

Open bags2001 opened this issue 9 years ago • 0 comments

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

bags2001 avatar Aug 01 '16 03:08 bags2001