From 3d75ed2d2ce1f9edd1a86dbf2b76e319414ea894 Mon Sep 17 00:00:00 2001 From: df Date: Tue, 5 May 2020 12:28:25 +0000 Subject: [PATCH] Change hard-wired initial size of "Test results" dialogue to be proportional to viewport dimensions See https://hummy.tv/forum/threads/sweeper-custom-rules-to-manage-recordings.5138/post-140696 --- webif/plugin/sweeper/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webif/plugin/sweeper/script.js b/webif/plugin/sweeper/script.js index 57061bf..655a143 100644 --- a/webif/plugin/sweeper/script.js +++ b/webif/plugin/sweeper/script.js @@ -952,7 +952,8 @@ $('#b_test,#b_run') } $('#testresults').dialog({ - height: '600', width: '800', + /* 'auto' is too small: use a big chunk of the available space */ + height: $(window).height()*0.8, width: $(window).width()*0.75, draggable: true, resizable: true, autoOpen: true, buttons: {