if (type === INodeSizeConstraintProvider) {
// use a custom size constraint provider to make sure that the node doesn't get smaller than the tab
return INodeSizeConstraintProvider.create({
// returns the tab size plus a small margin
getMinimumSize: (): Size => new Size(tabWidth + 20, tabHeight + 20),
// don't limit the maximum size
getMaximumSize: (): Size => Size.INFINITE,
// don't constrain the area
getMinimumEnclosedArea: (): Rect => Rect.EMPTY
})
}