Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating a browser should preserve the visual selection in morphic #864

Closed
seandenigris opened this issue Aug 3, 2015 · 2 comments
Closed

Comments

@seandenigris
Copy link
Contributor

Originally reported on Google Code with 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.

Reported by tudor@tudorgirba.com on 2012-11-15 08:19:06

@seandenigris
Copy link
Contributor Author

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

Reported by tudor@tudorgirba.com on 2012-11-15 08:25:57

@seandenigris
Copy link
Contributor Author

The problem was fixed by introducing = in the node model behind the tree morph

Reported by tudor@tudorgirba.com on 2012-11-16 14:00:38

  • Status changed: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant