Skip to content

Commit

Permalink
fix #7420: allow to provide a custom node for ReactWidget
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Mar 26, 2020
1 parent 8d55135 commit 739522d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/core/src/browser/widgets/react-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@

import * as ReactDOM from 'react-dom';
import * as React from 'react';
import { injectable } from 'inversify';
import { injectable, unmanaged } from 'inversify';
import { DisposableCollection, Disposable } from '../../common';
import { BaseWidget, Message } from './widget';
import { Widget } from '@phosphor/widgets';

@injectable()
export abstract class ReactWidget extends BaseWidget {

protected readonly onRender = new DisposableCollection();

constructor() {
super();
constructor(@unmanaged() options?: Widget.IOptions) {
super(options);
this.scrollOptions = {
suppressScrollX: true,
minScrollbarLength: 35,
Expand Down

0 comments on commit 739522d

Please sign in to comment.