Status: New Owner: ---- CC: chisvasi...@gmail.com Labels: Type-Defect Priority-Medium Component-Glamour Milestone-4.7
New issue 864 by tu...@tudorgirba.com: Updating a browser should preserve the visual selection in morphic http://code.google.com/p/moose-technology/issues/detail?id=864
The following snippet should work.
browser := GLMFinder new. browser show: [ :a | a list ]. browser openOn: ($a to: $d). browser panes first presentations selection: $b. browser update.
And at the end $b should continue to be selected.
Comment #1 on issue 864 by tu...@tudorgirba.com: Updating a browser should preserve the visual selection in morphic http://code.google.com/p/moose-technology/issues/detail?id=864
Strange that the following test does not fail:
testListWithExplicitSelection | browser treeMorph treeNodeMorph | browser := GLMFinder new. browser show: [ :a | a list ]. window := browser openOn: ($a to: $d). browser panes first presentations selection: $b. treeMorph := window submorphs last submorphs first submorphs first submorphs first submorphs first. self assert: treeMorph model selectionPathItems last = $b. browser update. treeMorph := window submorphs last submorphs first submorphs first submorphs first submorphs first. self assert: treeMorph model selectionPathItems last = $b
Updates: Status: Fixed Cc: -chisvasi...@gmail.com
Comment #2 on issue 864 by tu...@tudorgirba.com: Updating a browser should preserve the visual selection in morphic http://code.google.com/p/moose-technology/issues/detail?id=864
The problem was fixed by introducing = in the node model behind the tree morph