View Full Version : Card layout problem

15 Feb 2011, 3:48 AM
I've got cardlayout with 3 nested panels.

Each nested panel has toobar with edit button.

When I click edit button on active nested panel, all nested panels handles click.

Is it bug? Or I have missed something?

18 Feb 2011, 5:43 AM
sounds like you might be reusing the button config. I've not had this problem ever.

18 Feb 2011, 6:20 AM
I solved my problem. On different cards i've got buttons with same id in docked toolbar

18 Feb 2011, 6:25 AM
So you're using static ids for components?! Bad mojo!!!

18 Feb 2011, 6:33 AM
What I should use instead of it?

In your http://www.sencha.com/learn/Tutorial:A_Sencha_Touch_MVC_application_with_PhoneGap tutorial you are also use static ids for edit button in toolbar.

18 Feb 2011, 6:34 AM
itemId or component query.