mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Update window size automaticatlly
This commit is contained in:
parent
08f3a85aab
commit
4bea6f2931
3 changed files with 12 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="content-update.css"></link>
|
||||
</head>
|
||||
<body onload="ready()">
|
||||
<div class="colmask">
|
||||
<div class="colmask" id="content">
|
||||
<h3>We backed up your old Sandbox content, just in case.</h3>
|
||||
<p><b>To restore it, follow these steps:</b>
|
||||
|
||||
|
@ -45,9 +45,9 @@
|
|||
</div>
|
||||
|
||||
<div class="footer">
|
||||
|
||||
<p>For more information about managing your high Fidelity Sandbox Server, check out our docs: <a href="https://wiki.highfidelity.com/wiki/Sandbox" target="_blank">wiki.highfidelity.com/wiki/Sandbox</a>
|
||||
<p>For more information about managing your high Fidelity Sandbox Server, check out our docs: <a href="https://wiki.highfidelity.com/wiki/Sandbox" target="_blank">wiki.highfidelity.com/wiki/Sandbox</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -6,6 +6,11 @@ function ready() {
|
|||
|
||||
electron.ipcRenderer.on('update', function(event, message) {
|
||||
$('#directory').html(message);
|
||||
|
||||
electron.ipcRenderer.send('setSize', {
|
||||
width: $(window).width(),
|
||||
height: $('#content').height() + 50
|
||||
});
|
||||
});
|
||||
|
||||
electron.ipcRenderer.send('ready');
|
||||
|
|
|
@ -530,6 +530,9 @@ function openBackupInstructions(folder) {
|
|||
}
|
||||
window.show();
|
||||
|
||||
electron.ipcMain.on('setSize', function(event, obj) {
|
||||
window.setSize(obj.width, obj.height);
|
||||
});
|
||||
electron.ipcMain.on('ready', function() {
|
||||
console.log("got ready");
|
||||
window.webContents.send('update', folder);
|
||||
|
|
Loading…
Reference in a new issue