forked from Cuis-Smalltalk/Cuis-Smalltalk-Dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix a possible Editor display glitch
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
.../6629-Editor-fixAnotherPossibleMissingRefresh-JuanVuletich-2024Aug23-20h20m-jmv.001.cs.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'From Cuis7.1 [latest update: #6628] on 23 August 2024 at 8:23:32 pm'! | ||
|
||
!InnerTextMorph methodsFor: 'notifications' stamp: 'jmv 8/23/2024 20:22:49'! | ||
possiblyChanged | ||
| embeddedMorphs | | ||
embeddedMorphs := model actualContents embeddedMorphs. | ||
self submorphsDo: [:each| | ||
(embeddedMorphs includes: each) ifFalse: [ | ||
self privateRemove: each. | ||
each privateOwner: nil ]]. | ||
embeddedMorphs do: [ :each| | ||
each owner == self ifFalse: [ | ||
self addMorphFront: each. | ||
each hide "Show it only when properly located"]]. | ||
(owner is: #ScrollPane) ifTrue: [ | ||
owner possiblyChanged ]. | ||
self redrawNeeded.! ! | ||
|