mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
@@ -121,9 +121,12 @@ export class EditBoxImpl extends EditBoxImplBase {
|
||||
this._registerEventListeners();
|
||||
this._addDomToGameContainer();
|
||||
View.instance.on('canvas-resize', this._resize, this);
|
||||
screenAdapter.on('window-resize', this._resize, this);
|
||||
}
|
||||
|
||||
public clear (): void {
|
||||
View.instance.off('canvas-resize', this._resize, this);
|
||||
screenAdapter.off('window-resize', this._resize, this);
|
||||
this._removeEventListeners();
|
||||
this._removeDomFromGameContainer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user