Skip to content

Commit 4f75284

Browse files
author
Baohong Zhang
committed
Click on 'cellxgene' icon to bring VIP back
1 parent 9384305 commit 4f75284

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

interface.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ <h3>Global setting for VIP <a href="https://interactivereport.github.io/cellxgen
14291429
</Blockquote>
14301430
</div>
14311431
</div>
1432-
<p>Width of the central canvas of main window in pixel: <input id=canvasWidth name=canvasWidth size=8>&nbsp;&nbsp;<button onclick="$('.container div')[0].children[1].style.width=$('#canvasWidth').val()+'px';">Apply</button>
1432+
<p>Width of the central canvas of main window in pixel: <input id=canvasWidth name=canvasWidth value=1024 size=4>&nbsp;&nbsp;<button onclick="$('.container div')[0].children[1].style.width=$('#canvasWidth').val()+'px';window.dispatchEvent(new Event('resize'));">Apply</button>
14331433
<p>Figure DPI (Dots Per Inch):
14341434
<select id="IMGdpi" onchange="IMGset()">
14351435
<option value=150>150</option>
@@ -2182,6 +2182,8 @@ <h3>Load saved session</h3>
21822182
subtree: true,
21832183
attributeOldValue: true
21842184
});
2185+
// Click on "cellxgene" at the top-left corner to issue 'resize' event, so out-of-window VIP window will be back
2186+
$(".container div div div div div span")[0].onclick = function () {window.dispatchEvent(new Event('resize'));}
21852187

21862188
console.log("VIP (Visualization in Plugin) is ready on client side.");
21872189

0 commit comments

Comments
 (0)