Skip to content
Snippets Groups Projects
Commit 1e38b123 authored by smmercuri's avatar smmercuri Committed by Chris Sangwin
Browse files

Bug fix to correct jsxgraph collapsing in height by changing 100% to 100vh in l.124

parent 070f59ca
Branches
No related tags found
No related merge requests found
......@@ -121,13 +121,13 @@ class stack_cas_castext2_jsxgraph extends stack_cas_castext2_block {
$height = $xpars['height'];
}
$astyle = "width:calc(100% - 3px);height:calc(100% - 3px);";
$astyle = "width:calc(100% - 3px);height:calc(100vh - 3px);";
if (array_key_exists('aspect-ratio', $xpars)) {
$aspectratio = $xpars['aspect-ratio'];
// Unset the undefined dimension, if both are defined then we have a problem.
if (array_key_exists('height', $xpars)) {
$astyle = "height:calc($100% - 3px);aspect-ratio:$aspectratio;";
$astyle = "height:calc(100% - 3px);aspect-ratio:$aspectratio;";
} else if (array_key_exists('width', $xpars)) {
$astyle = "width:calc(100% - 3px);aspect-ratio:$aspectratio;";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment