Issue with conditional visibility

21 vues
Accéder directement au premier message non lu

Don Shearman

non lue,
6 mai 2021, 19:34:1906/05/2021
à Numbas Users
I've just come across an issue when using conditional visibility of text in a question where the text includes multiple paragraphs. In this instance, if multiple paragraphs are hidden white space is created in the question. This does not happen when previewing the question in the editor but is visible when using the Test Run link. The amount of white space in the page depends on the number of paragraphs hidden by the conditional visibility.

I've managed to get a work around by replacing the <span> tag used by the conditional formatting with a <div> tag outside the paragraph but it's rather clunky and time consuming to implement. Does anyone have a better suggestion?

Regards

Don Shearman
WEstern Sydney University

Christian Lawson-Perfect

non lue,
10 mai 2021, 03:10:0610/05/2021
à numbas...@googlegroups.com
Can you give a link to an example?

--
You received this message because you are subscribed to the Google Groups "Numbas Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numbas-users...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/numbas-users/fb4c9202-ac01-4989-9420-a6d01beb87fan%40googlegroups.com.

Don Shearman

non lue,
10 mai 2021, 06:43:3410/05/2021
à numbas...@googlegroups.com
Hi Christian

The original question can be found at https://numbas.mathcentre.ac.uk/question/share/view/da5eb11d-09af-4459-b5ad-bc1619ac1ec5 and my revised version at https://numbas.mathcentre.ac.uk/question/share/view/fef5b6e3-fca1-4e51-b40b-42a41d20fd54. The issue only shows up in Test Run (an presumably if the question runs in a test) and only if the denominator of the fraction is 3 or 8.

Regards

Don Shearman


Christian Lawson-Perfect

non lue,
20 mai 2021, 10:55:2920/05/2021
à numbas...@googlegroups.com
Thanks, that helped me see what was going on. I've made a change that I think fixes it.

Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message