Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot drop answer onto input field #64

Closed
t-schroeder opened this issue Nov 26, 2020 · 10 comments
Closed

Cannot drop answer onto input field #64

t-schroeder opened this issue Nov 26, 2020 · 10 comments

Comments

@t-schroeder
Copy link

If I want to drag the answer "Anwendung von physikalischen Effekten" into the second input field I have to drop it onto the area outlined in green here:

image

In this screenshot I paused the JavaScript at the moment that I clicked the answer text to start dragging it. I set a breakpoint in jquery-ui.js in the function "_cacheHelperProportions". I did click the answer that I underlined in red. But then a copy of it is being created or made visible which I encircled on the right. That element then immediately gets moved to my cursor and I can drag it around. But when I drag it around it has different dimensions than in the screenshot. It's one line instead of four. I think that's why all the drop areas are effectively to the top and right of the input fields when dragging this specific answer. With the one-word answers I don't have this problem and with the two-word answers it's less pronounced.

@marcusgreen
Copy link
Owner

Can you export an example question to xml and send it to me at marcusgreen at mailbox.org

@marcusgreen
Copy link
Owner

Thank you for sending me the xml. I have reproduced the issue and will work on it further.

@t-schroeder
Copy link
Author

Thanks for taking a look at this.

@marcusgreen
Copy link
Owner

I may have a solution, are you able to install an updated css file and purge caches, or are you limited to getting the next version from the moodle.org plugins database.

@marcusgreen
Copy link
Owner

I can make the modified version available for you to test on a publicly visible website.

@t-schroeder
Copy link
Author

I can do anything on my dev machine. You can just send me the updated css for testing.

@marcusgreen
Copy link
Owner

Get a copy of the current version of this
https://github.com/marcusgreen/moodle-qtype_gapfill/blob/master/styles.css
purge caches and see if it helps

@t-schroeder
Copy link
Author

That solves it. Thanks for the quick fix :)

@marcusgreen
Copy link
Owner

Thanks for the feedback, very much appreciated. Can I mention you in the credits for the next release
https://github.com/marcusgreen/moodle-qtype_gapfill/blob/master/changelog.md

@t-schroeder
Copy link
Author

Sure, much appreciated as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants