dock-spawn-ts 3.0.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/es5/dock-spawn-ts.js +1 -1
- package/lib/js/PanelContainer.d.ts +7 -1
- package/lib/js/PanelContainer.js +98 -51
- package/lib/js/PanelContainer.js.map +1 -1
- package/lib/js/TabHandle.js +3 -3
- package/lib/js/TabHandle.js.map +1 -1
- package/package.json +5 -5
- package/src/PanelContainer.ts +118 -62
- package/src/TabHandle.ts +7 -7
package/src/TabHandle.ts
CHANGED
|
@@ -80,6 +80,7 @@ export class TabHandle {
|
|
|
80
80
|
this.contextMenuHandler = new EventHandler(this.elementBase, 'contextmenu', this.oncontextMenuClicked.bind(this));
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
this.windowsContextMenuClose = this.windowsContextMenuClose.bind(this);
|
|
83
84
|
//this.zIndexCounter = parent.host.dockManager.zIndexTabHandle;
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -123,7 +124,7 @@ export class TabHandle {
|
|
|
123
124
|
}
|
|
124
125
|
tabHandle.closeContextMenu();
|
|
125
126
|
};
|
|
126
|
-
|
|
127
|
+
|
|
127
128
|
let btnNewBrowserWindow = document.createElement('div');
|
|
128
129
|
btnNewBrowserWindow.innerText = Localizer.getString('NewBrowserWindow');
|
|
129
130
|
contextMenuContainer.append(btnNewBrowserWindow);
|
|
@@ -146,8 +147,7 @@ export class TabHandle {
|
|
|
146
147
|
this._ctxMenu.style.left = e.pageX + "px";
|
|
147
148
|
this._ctxMenu.style.top = e.pageY + "px";
|
|
148
149
|
document.body.appendChild(this._ctxMenu);
|
|
149
|
-
|
|
150
|
-
window.addEventListener('mouseup', this._windowsContextMenuCloseBound);
|
|
150
|
+
window.addEventListener('mouseup', this.windowsContextMenuClose);
|
|
151
151
|
} else {
|
|
152
152
|
this.closeContextMenu();
|
|
153
153
|
}
|
|
@@ -157,7 +157,7 @@ export class TabHandle {
|
|
|
157
157
|
if (this._ctxMenu) {
|
|
158
158
|
document.body.removeChild(this._ctxMenu);
|
|
159
159
|
delete this._ctxMenu;
|
|
160
|
-
window.removeEventListener('mouseup', this.
|
|
160
|
+
window.removeEventListener('mouseup', this.windowsContextMenuClose);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
|
|
@@ -284,12 +284,12 @@ export class TabHandle {
|
|
|
284
284
|
this.contextMenuHandler.cancel();
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
if(this.elementBase){
|
|
287
|
+
if (this.elementBase) {
|
|
288
288
|
Utils.removeNode(this.elementBase);
|
|
289
289
|
delete this.elementBase;
|
|
290
290
|
}
|
|
291
|
-
|
|
292
|
-
if(this.elementCloseButton){
|
|
291
|
+
|
|
292
|
+
if (this.elementCloseButton) {
|
|
293
293
|
Utils.removeNode(this.elementCloseButton);
|
|
294
294
|
delete this.elementCloseButton;
|
|
295
295
|
}
|