vanadium-archive / browser

Example app: Vanadium namespace browser
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

Selected item should only be preserved between view switches if the new view has it #81

Open aghassemi opened 9 years ago

aghassemi commented 9 years ago

Currently selected item is preserved between view switches which is good unless the switched to view does not have that item, this can happens between tree view and grid view for instance or tree view and radial view when different nodes were expanded in each view.

Note what view switch is not limited to view type switches and same issues exists when namespace changes within the same view type.

New view should pick a new selected item when previous one is not part of the view (Could be the first item or the root)