Worked around a layout problem when the Victory Conditions are long.

master
Pacman Ghost 2 years ago
parent 8388cec67e
commit fc3e1110f8
  1. 3
      vasl_templates/webapp/static/main.js

@ -1242,7 +1242,8 @@ function adjust_footer_vspacers()
if ( gWebChannelHandler && $(this).attr("name").indexOf( "ob_" ) === 0 )
delta += 28 ;
// add a vertical spacer after the footer (to push it up a bit)
$footer.after( "<div class='vspacer' style='height:" + Math.ceil(Math.max(0,delta)) + "px'></div>" ) ;
var height = Math.ceil( Math.max( 0, delta ) ) + "px" ;
$footer.after( "<div class='vspacer' style='height:" + height + ";min-height:" + height + "'></div>" ) ;
} ) ;
}

Loading…
Cancel
Save