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 {