Skip to content

Scroll Bars with RDK #787

Answered by vijaymarupudi
wsr017 asked this question in Q&A
Jun 25, 2020 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

I'm not familiar with the plugin, but these edits seem to help

diff --git a/plugins/jspsych-rdk.js b/plugins/jspsych-rdk.js
index 40febc5..5064ff8 100644
--- a/plugins/jspsych-rdk.js
+++ b/plugins/jspsych-rdk.js
@@ -372,6 +372,9 @@ jsPsych.plugins["rdk"] = (function() {
 		//Remove the margins and padding of the canvas
 		canvas.style.margin = 0;
 		canvas.style.padding = 0;		
+    canvas.style.position = 'absolute';
+    canvas.style.top = 0
+    canvas.style.left = 0;
 		
 		//Get the context of the canvas so that it can be painted on.
 		var ctx = canvas.getContext("2d");

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jodeleeuw
Comment options

@gorkemer
Comment options

@gorkemer
Comment options

@vijaymarupudi
Comment options

@becky-gilbert
Comment options

Answer selected by becky-gilbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants