Skip to content

Commit fe75253

Browse files
committed
better fix
1 parent 96e627f commit fe75253

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

services/static-webserver/client/source/class/osparc/desktop/WorkbenchView.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ qx.Class.define("osparc.desktop.WorkbenchView", {
6161
},
6262

6363
__handleIframeStateChange: function(node, iframeLayout) {
64-
if (iframeLayout.removeAll) {
64+
if (iframeLayout.classname === "osparc.viewer.NodeViewer") {
65+
iframeLayout._removeAll();
66+
} else {
6567
iframeLayout.removeAll();
6668
}
6769
if (node && node.getIFrame()) {
@@ -73,12 +75,12 @@ qx.Class.define("osparc.desktop.WorkbenchView", {
7375
} else if (src === null || src === "about:blank") {
7476
showPage = node.getLoadingPage();
7577
}
76-
if (iframeLayout.add) {
77-
iframeLayout.add(showPage, {
78+
if (iframeLayout.classname === "osparc.viewer.NodeViewer") {
79+
iframeLayout._add(showPage, {
7880
flex: 1
7981
});
80-
} else if (iframeLayout._add) {
81-
iframeLayout._add(showPage, {
82+
} else {
83+
iframeLayout.add(showPage, {
8284
flex: 1
8385
});
8486
}

0 commit comments

Comments
 (0)