From 13bb8499f87c5705279cd4f92b473a961d5f0fcf Mon Sep 17 00:00:00 2001 From: Michael Gage Date: Wed, 2 May 2018 22:54:47 -0400 Subject: [PATCH] Add protecting
around the geogebra object. The geogebra javaScript modifies the style of the second enveloping
containing the geogebra object. Specifically it sets the height and width. If the
contains other material besides the geogebra object these values for the height and width will be incorrect causing overlapping outputs. --- lib/Applet.pm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/Applet.pm b/lib/Applet.pm index 764cd090d4..80fecf5bf7 100644 --- a/lib/Applet.pm +++ b/lib/Applet.pm @@ -1144,14 +1144,27 @@ use constant GEOGEBRAWEB_OBJECT_HEADER_TEXT =><<'END_HEADER_SCRIPT'; END_HEADER_SCRIPT +# Some changes in the way geogebra javaScript works make it important +# That the object and the script that calls it are contained in some
+# (otherwise geogebra adds height and width values to the second enclosing
+# (i.e. the div enclosing the enclosing div) and +# if the div contains more than just the geogebra applet this size will be incorrect. ) +# (This behavior is probably a bug in geogebra -- +# but I don't have a precise statement of the API.) +# The
<<'END_OBJECT_TEXT'; +
+
$webgeogebraParameters - +
+
END_OBJECT_TEXT sub new {