diff --git a/src/view/Tab.tsx b/src/view/Tab.tsx index 91c15487..6ebb0049 100755 --- a/src/view/Tab.tsx +++ b/src/view/Tab.tsx @@ -49,7 +49,13 @@ export class Tab extends React.Component { render() { const cm = this.props.layout.getClassName; + let classNames = cm("flexlayout__tab"); const node = this.props.node; + + if (this.props.node.getClassName() !== undefined) { + classNames += " " + this.props.node.getClassName(); + } + const parentNode = node.getParent() as TabSetNode; const style: JSMap = node._styleWithPosition({ display: this.props.selected ? "block" : "none" @@ -64,7 +70,7 @@ export class Tab extends React.Component { child = this.props.factory(node); } - return
{child}