diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-30 00:33:26 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-30 00:33:26 -0400 |
| commit | 9e6f81fdd224f5988ce3b8e794d630f81a34bc0b (patch) | |
| tree | 2b605f96542a221f13a3b0cff31f0d1fb5833fee /src/client/views/animationtimeline | |
| parent | d6ed6bc7a368169b15b81b02d4daee67a92b05c4 (diff) | |
removed ComponentWillMount which is obsolete
Diffstat (limited to 'src/client/views/animationtimeline')
| -rw-r--r-- | src/client/views/animationtimeline/Timeline.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/views/animationtimeline/Timeline.tsx b/src/client/views/animationtimeline/Timeline.tsx index df828897e..1131ec874 100644 --- a/src/client/views/animationtimeline/Timeline.tsx +++ b/src/client/views/animationtimeline/Timeline.tsx @@ -83,14 +83,11 @@ export class Timeline extends React.Component<FieldViewProps> { } /////////lifecycle functions//////////// - componentWillMount() { + componentDidMount() { const relativeHeight = window.innerHeight / 20; //sets height to arbitrary size, relative to innerHeight this._titleHeight = relativeHeight < this.MAX_TITLE_HEIGHT ? relativeHeight : this.MAX_TITLE_HEIGHT; //check if relHeight is less than Maxheight. Else, just set relheight to max this.MIN_CONTAINER_HEIGHT = this._titleHeight + 130; //offset this.DEFAULT_CONTAINER_HEIGHT = this._titleHeight * 2 + 130; //twice the titleheight + offset - } - - componentDidMount() { runInAction(() => { if (!this.props.Document.AnimationLength) { //if animation length did not exist this.props.Document.AnimationLength = this._time; //set it to default time |
