Skip to content
Permalink
Browse files

Don't let JSAV grow the slideshow height to ludicrous extremes

πŸ˜‘
  • Loading branch information...
CorySanin committed Jan 7, 2019
1 parent f046f4c commit 0287ab19edebd79092b1578511ee5fd87d87d9a7
Showing with 14 additions and 1 deletion.
  1. +10 βˆ’0 AV/PL/paramPassingSlideshowFixHeight.js
  2. +4 βˆ’1 RST/en/PL/SLang2ParameterPassing.rst
@@ -0,0 +1,10 @@
//jsav whyyyyyyyy
$(window).load(function() {
var canvases = $('.jsavcanvas');
for(var i=0; i<canvases.length; i++){
var canvas = $('svg', canvases[i]);
var jsavcode = $('.jsavcode', canvases[i]);
canvas.css('height', (jsavcode.height() + 12) + 'px');
$(canvases[i]).css('min-height', (jsavcode.height() + 24) + 'px')
}
})
@@ -63,7 +63,7 @@ If the parameter passing method call-by-value is used...
:output: show

A proficiency exercise for pass-by-value ...

.. avembed:: AV/PL/paramPassingByValPRO.html pe
:long_name: Pass-by-value Proficiency Exercise

@@ -341,3 +341,6 @@ depth in the context of a specific example known as a *lazy list*.

.. .. avembed:: Exercises/PL/RP31part2.html ka
.. :long_name: RP set #31, question #2
.. odsascript:: AV/PL/paramPassingSlideshowFixHeight.js

0 comments on commit 0287ab1

Please sign in to comment.
You can’t perform that action at this time.