Skip to content

Commit

Permalink
Attempt to detect active item and switch slide direction.
Browse files Browse the repository at this point in the history
Raises error:
    Result of expression 'ListDemo.Viewport' [undefined] is not an object.
  • Loading branch information
nelstrom committed Dec 24, 2010
1 parent 66dbf0a commit 20855d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/javascripts/index.js
Expand Up @@ -46,7 +46,10 @@ ListDemo = new Ext.Application({
ListDemo.Viewport = new Ext.Panel ({
fullscreen: true,
layout: 'card',
cardSwitchAnimation: 'slide',
cardSwitchAnimation: {
type: 'slide',
direction: ListDemo.Viewport.getActiveItem().id == 'disclosurelist' ? 'left' : 'right'
},
items: [ListDemo.disclosureList, ListDemo.detailPanel]
});
}
Expand Down

0 comments on commit 20855d9

Please sign in to comment.