Last item of dropdown sometimes not visible within PreTeXt

If you scroll down to the bottom of this problem, there are 4 dropdowns to complete a sentence. The second-to-last dropdown is the same as the first dropdown: there is a final option that is “either 1 or -1”, but that option can’t be seen unless you just start typing “either” in the box. The last dropdown displays above instead of below, probably to avoid exactly this issue. But maybe the second-to-last should open above also?

I can provide source if it would help.

This flaw appears to be caused by the fact that the 0, 1, and -1 options are rendered by MathJax. When the component determines how much space the dropdown menu needs, MathJax hasn’t yet rendered those lines. So, it thinks there is plenty of space below and opens it downward. However, once MathJax renders those values, the menu gets a lot taller and it extends past the bottom of the iframe, where it is cut off.

For a workaround, I bet if you just make the 0, 1, -1 be numbers, not mathematics, they should be visible. You could remove any <m> or <math>. Or if they are calculated, you could wrap them in a <number>.

I also opened an issue to fix the bug.

That makes sense, and that fix would work for that problem, but it’s happening in other problems where every choice is a function and is rendered with MathJax, such as these first couple of problems here. AC Quantifying the accuracy of approximations

Since we don’t have any “dev” version of 0.7, I just went ahead and published version 0.7.29 with the fix for the dropdown menu. If you have your doenetml version already set to “0.7”, then eventually, within a few days, it should upgrade to the new version that fixes the dropdowns. If you are using “latest”, then that won’t receive the update. If you want the fix immediately, you can set the doenetml version to “0.7.29”.

Thank you so much! AC and APC are using version=0.7. I’m content to just wait a few days unless more instructors report the issue and want the fix sooner.