Skip to content

Commit

Permalink
core: do not consider the editor canvas a scrollpane
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 committed Sep 23, 2023
1 parent 49d2185 commit 0c63888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/Sandblocks-Core/SBBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ SBBlock >> ensureVisible [
"FIXME: for insert cursors, the block bounds are not relevant but this does not belong here (assumption of selection that is not in ensureVisible)"
self sandblockEditor cursor mode = #insert ifFalse: [
self allOwnersDo: [:o |
(o isKindOf: ScrollPane) ifTrue: [
((o isKindOf: ScrollPane) and: [o ~= self sandblockEditor canvas]) ifTrue: [
o scrollToShow: show.
show := o fullBounds]]].

Expand Down

0 comments on commit 0c63888

Please sign in to comment.