Skip to content

Commit 92a564d

Browse files
committed
Fix: update dragboard size on hidden tabs
1 parent c9c5985 commit 92a564d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/wirecloud/platform/static/js/wirecloud/ui/WorkspaceView.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
this.walletButton.enabled = editing && this.model.isAllowed('edit');
4444
this.wiringButton.enabled = editing && this.model.isAllowed('edit');
4545
this.notebook.tabWrapper.toggleClassName("hidden", !(editing || this.tabs.length > 1));
46+
this.notebook.tabs.forEach((tab) => {
47+
if (tab.dragboard) {
48+
tab.dragboard._notifyWindowResizeEvent();
49+
}
50+
});
51+
4652
if (this.addTabButton) {
4753
this.addTabButton.toggleClassName("hidden", !editing);
4854
}

0 commit comments

Comments
 (0)