File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed
Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ ToAnchoredWindowManager >> eventsToHandle [
164164 ToOpenedClosedEvent .
165165 BlElementExtentChangedEvent .
166166 BlElementToBeRemovedFromParentEvent .
167+ ToRemovedFromSpaceEvent .
167168 BlElementPositionInSpaceChangedEvent .
168169 ToThemeInstalledEvent }
169170]
@@ -326,6 +327,12 @@ ToAnchoredWindowManager >> positionWindowOnEvent: anEvent context: aBlElementBou
326327 context: aBlElementBoundsUpdateContext
327328]
328329
330+ { #category : #' event handling' }
331+ ToAnchoredWindowManager >> removedFromSpaceEvent: anEvent [
332+
333+ self closeWindow
334+ ]
335+
329336{ #category : #' window handling' }
330337ToAnchoredWindowManager >> startWindow: aWindow onEvent: anEvent [
331338
Original file line number Diff line number Diff line change @@ -143,13 +143,6 @@ ToPopupWindowManager >> defaultWindowStarter [
143143 ^ ToStandardPopupStarter new
144144]
145145
146- { #category : #' event handling' }
147- ToPopupWindowManager >> elementToBeRemovedFromParentEvent: anEvent [
148-
149- super elementToBeRemovedFromParentEvent: anEvent.
150- delayedPopupHandler cleanUpCheckerIn: anchorElement
151- ]
152-
153146{ #category : #' api - accessing' }
154147ToPopupWindowManager >> eventsToHandle [
155148
@@ -350,6 +343,13 @@ ToPopupWindowManager >> popupOnPressed: aBoolean [
350343 delayedPopupHandler activateOnPressed: popupOnPressed
351344]
352345
346+ { #category : #' event handling' }
347+ ToPopupWindowManager >> removedFromSpaceEvent: anEvent [
348+
349+ super removedFromSpaceEvent: anEvent.
350+ delayedPopupHandler cleanUpCheckerIn: anchorElement
351+ ]
352+
353353{ #category : #' window handling' }
354354ToPopupWindowManager >> requestCloseWindowOnEvent: anEvent [
355355
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ ToSkinStateGenerator >> closedEvent: anEvent [
101101 " directly dispatch the skin event to allow the hnadling of the closed window
102102 (with a closing animation as an example ) "
103103
104+ target isAttachedToSceneGraph ifFalse: [ ^ self ].
104105 target skinManagerDo: [ :sm |
105106 target dispatchEvent: (ToClosedSkinEvent sourceEvent: anEvent) ]
106107]
You can’t perform that action at this time.
0 commit comments