added plugin buttons to the launcher pane

This commit is contained in:
zadam
2021-06-05 14:12:17 +02:00
parent 4bf1c25721
commit 8debf18984
3 changed files with 25 additions and 13 deletions

View File

@@ -3,14 +3,18 @@ import BasicWidget from "./basic_widget.js";
const TPL = `<div class="spacer"></div>`;
export default class SpacerWidget extends BasicWidget {
constructor(growIndex = 1000) {
constructor(baseSize = 0, growIndex = 1000, shrinkIndex = 1000) {
super();
this.baseSize = baseSize;
this.growIndex = growIndex;
this.shrinkIndex = shrinkIndex;
}
doRender() {
this.$widget = $(TPL);
this.$widget.css("flex-grow", this.growIndex)
this.$widget.css("flex-basis", this.baseSize);
this.$widget.css("flex-grow", this.growIndex);
this.$widget.css("flex-shrink", this.shrinkIndex);
}
}