power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

TAccordion bug when page with ActiveControls #340

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

o Create a page with a TAccordion
o Add some active controls inside (or outside doesn't matter) the accordion
o Add an Active Button that raise a callback
o Click on the accordion

What is the expected output? What do you see instead?

Accordion should open the view.
It does it many times (many = number of time the callback has been raised)

Because callbacks re-register the scripts, the click event handler is added 
several times. 
Possible solution is to clear event handler list by adding :
      this.accordion.stopObserving('click')
just before observing the event.

Maybe a better solution exists.

Other bug, when you click on the active button, the accordion will close all 
view.
don't have a solution for this yet.

Original issue reported on code.google.com by Christophe.Boulain@gmail.com on 30 Jun 2011 at 3:44

GoogleCodeExporter commented 8 years ago
Please supply sample code (.page+.php) to reproduce the error so I can have a 
look at the issue.

Original comment by google...@pcforum.hu on 2 Jul 2011 at 7:05

GoogleCodeExporter commented 8 years ago
i'm already looking up for a solution (more specifically, a rewrite of the js 
part to line up this controlmto ttabpanel). Anyway, you can find an example in 
the quickstart in trunk/

Original comment by ctrlal...@gmail.com on 3 Jul 2011 at 7:43

GoogleCodeExporter commented 8 years ago
fixed in r3007, but since a lot of code has been changed please test it :)

Original comment by ctrlal...@gmail.com on 3 Jul 2011 at 3:04