From 401ad8128c9fa63ed9c0617e15ca6c72498720b8 Mon Sep 17 00:00:00 2001 From: Taka Date: Sat, 11 May 2019 06:20:56 +0000 Subject: [PATCH] Work around a resizing problem when showing/hiding the ROAR info panel. --- vasl_templates/webapp/static/roar.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vasl_templates/webapp/static/roar.js b/vasl_templates/webapp/static/roar.js index 5dd171b..f0e9d94 100644 --- a/vasl_templates/webapp/static/roar.js +++ b/vasl_templates/webapp/static/roar.js @@ -279,6 +279,9 @@ function set_roar_scenario( roar_id ) $( "input[name='ROAR_ID']" ).val( "" ) ; $( "#roar-info" ).hide() ; } + // FUDGE! The scenario notes panel doesn't always resize itself after showing the ROAR info panel, + // causing the main window to show a vertical scrollbar. We hack around this by forcing a resize. + $(window).trigger( "resize" ) ; } // set the ROAR scenario