Skip to content

Commit

Permalink
Merge pull request #998 from bergware/master
Browse files Browse the repository at this point in the history
Limit popup window width on ultrawide monitors
  • Loading branch information
limetech committed Jan 10, 2022
2 parents df853c5 + dbe5ffc commit e43b4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/dynamix/include/DefaultPageLayout.php
Expand Up @@ -226,7 +226,7 @@ function openTerminal(tag,name,more) {
}
// open terminal window (run in background)
name = name.replace(/ /g,"_");
tty_window = makeWindow(name,Math.max(screen.availHeight*3/5,600),Math.max(screen.availWidth/2,900));
tty_window = makeWindow(name,Math.max(screen.availHeight*3/5,600),Math.min(Math.max(screen.availWidth/2,900),1600));
var socket = ['ttyd','syslog'].includes(tag) ? '/webterminal/'+tag+'/' : '/logterminal/'+name+(more=='.log'?more:'')+'/';
$.get('/webGui/include/OpenTerminal.php',{tag:tag,name:name,more:more},function(){tty_window.location=socket; tty_window.focus();});
}
Expand Down

0 comments on commit e43b4d6

Please sign in to comment.