Fixed resize bug when embedded.

d3summaryChart
Frode Petterson 2014-04-11 15:50:22 +02:00
parent 0dcc4503f9
commit bc9b787e78
2 changed files with 9 additions and 4 deletions

View File

@ -424,6 +424,7 @@ H5P.QuestionSet = function (options, contentId) {
// Masquerade the main object to hide inner properties and functions. // Masquerade the main object to hide inner properties and functions.
var returnObject = { var returnObject = {
$: $(this),
attach: attach, // Attach to DOM object attach: attach, // Attach to DOM object
getQuestions: function () {return questionInstances;}, getQuestions: function () {return questionInstances;},
getScore: getScore, getScore: getScore,

View File

@ -3,17 +3,21 @@
"contentType": "question", "contentType": "question",
"majorVersion": 1, "majorVersion": 1,
"minorVersion": 0, "minorVersion": 0,
"patchVersion": 45, "patchVersion": 46,
"runnable": 1, "runnable": 1,
"fullscreen": 0, "fullscreen": 0,
"machineName": "H5P.QuestionSet", "machineName": "H5P.QuestionSet",
"author": "Amendor AS", "author": "Amendor AS",
"license": "cc-by-sa", "license": "cc-by-sa",
"preloadedJs": [ "preloadedJs": [
{"path": "js/questionset.js"} {
"path": "js/questionset.js"
}
], ],
"preloadedCss": [ "preloadedCss": [
{"path": "css/questionset.css"} {
"path": "css/questionset.css"
}
], ],
"preloadedDependencies": [ "preloadedDependencies": [
{ {
@ -44,4 +48,4 @@
"minorVersion": 0 "minorVersion": 0
} }
] ]
} }