Skip to content

Commit

Permalink
Reactive toolbar w.r.t width (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjxn-py authored Oct 10, 2024
1 parent d11626e commit a198b83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/base/src/toolbar/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { CommandToolbarButton } from '@jupyterlab/apputils';
import {
ReactWidget,
Toolbar,
ReactiveToolbar,
ToolbarButton,
addIcon,
redoIcon,
Expand All @@ -29,9 +30,9 @@ export class Separator extends Widget {
}
}

export class ToolbarWidget extends Toolbar {
export class ToolbarWidget extends ReactiveToolbar {
constructor(options: ToolbarWidget.IOptions) {
super(options);
super();

this.addClass('jGIS-toolbar-widget');

Expand Down Expand Up @@ -150,7 +151,7 @@ export class ToolbarWidget extends Toolbar {

this.addItem('New', NewButton);

this.addItem('spacer', Toolbar.createSpacerItem());
this.addItem('spacer', ReactiveToolbar.createSpacerItem());

// Users
this.addItem(
Expand Down

0 comments on commit a198b83

Please sign in to comment.