Skip to content

Commit 2a90f58

Browse files
committed
update dock spawn
1 parent 90530d5 commit 2a90f58

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

lib/es5/dock-spawn-ts.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/js/DockLayoutEngine.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export declare class DockLayoutEngine {
2424
reorderTabs(node: DockNode, handle: TabHandle, state: string, index: number): void;
2525
_performDock(referenceNode: DockNode, newNode: DockNode, direction: string, insertBeforeReference: boolean): void;
2626
_forceResizeCompositeContainer: (container: IDockContainer) => void;
27-
_createDockContainer(containerType: string, newNode: DockNode, referenceNode: DockNode): HorizontalDockContainer | VerticalDockContainer | FillDockContainer;
27+
_createDockContainer(containerType: string, newNode: DockNode, referenceNode: DockNode): FillDockContainer | HorizontalDockContainer | VerticalDockContainer;
2828
/**
2929
* Gets the bounds of the new node if it were to dock with the specified configuration
3030
* The state is not modified in this function. It is used for showing a preview of where

lib/js/webcomponent/DockSpawnTsWebcomponent.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/js/webcomponent/DockSpawnTsWebcomponent.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dock-spawn-ts",
3-
"version": "3.5.0",
3+
"version": "3.6.0",
44
"description": "DockSpawn Typescript Version",
55
"license": "MIT",
66
"author": "[email protected]",

src/webcomponent/DockSpawnTsWebcomponent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ export class DockSpawnTsWebcomponent extends HTMLElement {
106106
if (dockPanelTypeAttribute)
107107
dockPanelType = <PanelType><any>dockPanelTypeAttribute;
108108
let hideCloseButton = element.hasAttribute('dock-spawn-hide-close-button');
109-
let container = new PanelContainer(slot, this.dockManager, element.title, dockPanelType, hideCloseButton);
109+
let dockSpawnTitle = element.getAttribute('dock-spawn-title');
110+
let container = new PanelContainer(slot, this.dockManager, dockSpawnTitle ?? element.title, dockPanelType, hideCloseButton);
110111
element.slot = slotName;
111112
this.slotElementMap.set(slot, (<HTMLElement>element));
112113
this.elementContainerMap.set(element, container);

0 commit comments

Comments
 (0)