Skip to content

Commit

Permalink
Fix UI window max size
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Aug 25, 2022
1 parent a528dc2 commit dae594d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions modules/analyze/html/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,14 @@ function newwindow(id, title, content, height, width) {
if (width) {
mywindow.width(width);
}

if (mywindow.height() > maxheight) {
mywindow.height(maxheight)
}
if (mywindow.width() > maxwidth) {
mywindow.width(maxwidth)
}

}

$('#title', mywindow).html(title);
Expand Down
2 changes: 1 addition & 1 deletion modules/analyze/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
</div>

<!-- Absolute stuff -->
<div id="about" class="pointer-events-auto"><span id="programinfo">adalanche</span> - <img src="icons/twitter.svg" height="16px"> <a href="https://twitter.com/lkarlslund">@lkarlslund</a>
<div id="about" class="pointer-events-auto"><span id="programinfo">adalanche</span> - <span id="programlink"><img src="icons/twitter.svg" height="16px"> <a href="https://twitter.com/lkarlslund">@lkarlslund</a></span>
</div>

<div id="status" class="border bg-dark p-5 shadow pointer-events-auto">
Expand Down

0 comments on commit dae594d

Please sign in to comment.