Size loop when embedding

I noticed this error in Drag and drop Papi Joe but tested it in the regular Drag and Drop (the number below are from the regular D&D) didn't test it in more activities but I suspect it will be the same.

Basically the size I give to my activity is not the display size.

Giving Size: 620x310 in the activity results in a 958x624 size when putting out the embedded cod

Giving Size: 958x624 in the activity results in a 958x765 size when putting out the embedded cod

Giving Size: 958x765 in the activity results in a 958x914 size when putting out the embedded code

etc

and impossible to get in between sizes

(Also, where I use it I cannot manually resize it)

Content types: 
otacke's picture

Hi!

The size that you are setting for the Drag and Drop interaction is the canvas size, not the actual size of the whole content. H5P will always scale content to the full width available, and so does the embed code generator that obviously detects a width of 958 pixels. When scaling up the width, the height will also be scaled up, of course. Also, the title, the check button and the action bar also need some vertical space, so the height will even be a little larger.

Best,
Oliver

Thank you for the reply.

So how can I edit an Drag and Drop activity in the display that I will use it in?

Currently, my drop zones are completely shifted. And I'm guessing how much I should more them to fit correctly.

Take care

otacke's picture

Hi!

Not sure if I understand your question correctly. Maybe BV or someone else can help out.

Best,
Oliver

BV52's picture

Hi Neo College,

I think some screenshots will help with this issue.

-BV

Here is the link and you can see for yourself : https://neocollege.ca/lesson/plat-de-riz-et-poulet/

The boxes are not well aligned. Yet they are aligned in H5P editing mode.

It is tedious to adjust the boxes in the editing mode but having to save and refresh the web page to guess where they will appear.

BV52's picture

Hi Neo College,

Thank you for the link to the content. I do see some misalignment in the content but without a screenshot in the editing mode or the download button not enabled I will not be able to fully confirm everything.

-BV

Also, notice the lags in retrying a game! Those weren't there before. It blocs the game and it is impossible to retry without displaying the answer. (Even then the game crashes sometimes. Pretty frustrating) 

BV52's picture

Hi Neo College,

Crashes and in some cases lags will have errors in the browser console. Please attach a screenshot if you are seeing some.

-BV

Also, notice the lags in retrying a game! Those weren't there before. It blocs the game and it is impossible to retry without displaying the answer. (Even then the game crashes sometimes. Pretty frustrating) 

Hi! I find a way around it. Basically for some reasons I am not allowed to use inifinte display for a picture I wanted to drapg and drop. I ended up overlaying two pictures and that was good enough for what I was trying to do. 

My option fit on two picutres but I could only attach one. In any case, this is good enough for me