PDA

View Full Version : Card layout problem



lexer
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?

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

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

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

lexer
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.

jay@moduscreate.com
18 Feb 2011, 6:34 AM
itemId or component query.