@@ -67,12 +64,13 @@ export default class OtherOptionsWidget extends Widget implements OtherOptionsWi
}
private clear() {
+ this._options = [];
this.$node.find(this.PANEL_SELECTOR).empty();
+ MessageLoop.sendMessage(this.parent, new Messages.SizeChangedMessage());
}
public onLoad(otherOptions: IOtherJVMOptions) {
this.clear();
- this._options = [];
for (let option of otherOptions) {
this.addFormElement(option);
}
@@ -113,6 +111,7 @@ export default class OtherOptionsWidget extends Widget implements OtherOptionsWi
element.appendTo(this.$node.find(this.PANEL_SELECTOR))
MessageLoop.sendMessage(this, new Private.ElementAddedMessage(element));
+ MessageLoop.sendMessage(this.parent, new Messages.SizeChangedMessage());
}
public processMessage(msg: Message): void {
@@ -150,6 +149,7 @@ export default class OtherOptionsWidget extends Widget implements OtherOptionsWi
let el: JQuery
= evt.data.el;
el.remove();
MessageLoop.sendMessage(this, new Private.ElementRemovedMessage(el));
+ MessageLoop.sendMessage(this.parent, new Messages.SizeChangedMessage());
}
private inputChangedHandler(evt): void {
diff --git a/js/notebook/src/tree/Widgets/JVMOptions/PropertiesWidget.ts b/js/notebook/src/tree/Widgets/JVMOptions/PropertiesWidget.ts
index 4e465ea606..7a3ffae93c 100644
--- a/js/notebook/src/tree/Widgets/JVMOptions/PropertiesWidget.ts
+++ b/js/notebook/src/tree/Widgets/JVMOptions/PropertiesWidget.ts
@@ -19,8 +19,9 @@ import * as _ from "underscore";
import { Widget } from "@phosphor/widgets";
import { MessageLoop, Message } from "@phosphor/messaging";
-import {IPropertiesJVMOptions} from "../../Types/IJVMOptions";
-import {Messages} from "../../Messages";
+
+import { IPropertiesJVMOptions } from "../../Types/IJVMOptions";
+import { Messages } from "../../Messages";
export default class PropertiesWidget extends Widget {
@@ -28,11 +29,6 @@ export default class PropertiesWidget extends Widget {
public readonly PROPERTIES_PANEL_SELECTOR: string = '#properties_property';
public readonly HTML_ELEMENT_TEMPLATE = `
-