bitcraftlab / p5.gui

p5.gui magically generates a graphical user interface for your p5.js sketches
https://bitcraftlab.github.io/p5.gui
MIT License
357 stars 91 forks source link

gui opens but does not show elements #18

Open dan-reznik opened 5 years ago

dan-reznik commented 5 years ago

for some reason after i createGui with a just one regular float variable the GUI header appears but the element doesn't show. attaching a screenshot.

Screenshot 2019-08-31 at 7 17 25 AM

ajwarnick commented 5 years ago

I have the same issue. The problem seems related to how the variable is scoped when declared. Does the issue persist if you use var vs let?

For me the variable appears when you switch to var.