sojamo / controlp5

A gui library for processing.org
GNU Lesser General Public License v2.1
490 stars 142 forks source link

Problem in drawing Accordions when autodraw mode is disabled #98

Open jeraman opened 7 years ago

jeraman commented 7 years ago

Hello,

First of all, thanks for this awesome library! ;)

I'm facing problems when using the draw method of an accordion when autodraw mode is disabled. In my particular case, the accordion contains a group (that by its turn contains multiple controllers, such as textfields, buttons, etc).

This is what happens:

  1. If I draw only the accordion, no group item is drawn. In addition, the text and its corresponding textbox are not aligned;
  2. If I draw the accordion, the group, and each item individually, the items are drawn, but misplaced in absolute and relative positions (x=0 and y=0 screen coordinates). Text and textbox are again not aligned.

Everything works fine when I draw simple elements (i.e. a Textfield). Similarly, everything works great when autodraw is enabled.

Am I missing something? Or is this a bug?

If possible, I'd love to hear from you what you think. I'd be happy to provide further details if you want.

Regards,