Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
nealus committed Aug 13, 2018
1 parent af2f912 commit 897ed19
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FlexLayout is a layout manager that arranges React components in multiple tab se

Try it now using [JSFiddle](https://jsfiddle.net/rmf3hzmf/57/)

[API Doc](./typedoc/index.html)
<!-- [API Doc](./typedoc/index.html) -->

[Screenshot of Caplin Liberator Explorer using FlexLayout](https://rawgit.com/caplin/FlexLayout/demos/demos/v0.20/images/LiberatorExplorerV3_3.PNG)

Expand Down
2 changes: 1 addition & 1 deletion src/model/TabNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TabNode extends Node implements IDraggable{
}

/** @hidden @internal */
setTabRect(rect: Rect) {
_setTabRect(rect: Rect) {
this._tabRect = rect;
}

Expand Down
2 changes: 1 addition & 1 deletion src/view/BorderButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class BorderButton extends React.Component<IBorderButtonProps, any> {
// record position of tab in border
const clientRect = (ReactDOM.findDOMNode(this.props.layout) as Element).getBoundingClientRect();
const r = (this.selfRef as Element).getBoundingClientRect();
this.props.node.setTabRect(new Rect(r.left - clientRect.left, r.top - clientRect.top, r.width, r.height));
this.props.node._setTabRect(new Rect(r.left - clientRect.left, r.top - clientRect.top, r.width, r.height));
this.contentWidth = (this.contentsRef as Element).getBoundingClientRect().width;
}

Expand Down
2 changes: 1 addition & 1 deletion src/view/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import IDraggable from "../model/IDraggable";

export interface ILayoutProps {
model: Model,
factory: (node: Node) => React.ReactNode,
factory: (node: TabNode) => React.ReactNode,
onAction?: (action: Action) => void,
onRenderTab?: (node: TabNode, renderValues: { leading: React.ReactNode, content: React.ReactNode }) => void,
onRenderTabSet?: (tabSetNode: (TabSetNode | BorderNode), renderValues: { headerContent?: React.ReactNode, buttons: Array<React.ReactNode> }) => void,
Expand Down
2 changes: 1 addition & 1 deletion src/view/TabButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class TabButton extends React.Component<ITabButtonProps, any> {
// record position of tab in node
const clientRect = (ReactDOM.findDOMNode(this.props.layout) as Element).getBoundingClientRect();
const r = (this.selfRef as Element).getBoundingClientRect();
this.props.node.setTabRect(new Rect(r.left - clientRect.left, r.top - clientRect.top, r.width, r.height));
this.props.node._setTabRect(new Rect(r.left - clientRect.left, r.top - clientRect.top, r.width, r.height));
this.contentWidth = this.contentRef.getBoundingClientRect().width;
}

Expand Down

0 comments on commit 897ed19

Please sign in to comment.