Open bhoffman0 opened 1 year ago
@bhoffman0 This weekend, I am releasing the assignment pages that use the new assignment server. Its a direct port from web2py to FastAPI, but.... The assignment pages are using a much newer version of bootstrap. I cannot reproduce this problem on on that new server.
The URLs from the old web2py pages automatically redirect to the new page. But I'm not deleting any of the old code in case something terrible happens and we have to backtrack. I really don't think that will be the case.
Finally, I could swear this is a problem that @gigamonkey fixed already some weeks ago...
So, I'm not going to chase this, unless it re-occurs on the new server.
I did not have this problem last Wednesday (8/16/2023) when my students did their assignments, but I do have it on ALL the author created exercises today (8/21/2023) including the ones the students did last week.
If it helps, I edited and resaved one exercise and that fixed the problem.
It seems to be the .col-md-12
class on the div that contanis the question.
It only happens at a certain width... On the assignment page if I make my browser a little narrower the problem goes away. So that is a short term workaround.
I would hate to make everyone go edit/rebuild all of the activecode questions that have this problem. Possible solutions:
I think the easiest solution is for me to run an update. I've got a sql update statement that will just remove the col-md-12 when it comes after the .ac_question
which seems to be the most reliable fix.
OK, I've done the update and things look good for me on questions that were bad before.
Looks good from my end too. I checked several more of my exercises and all seem OK.
It's baaaaaack! In Chrome, the buttons are not appearing in the correct place unless I enlarge the text so much that the code window appears below the rest of the text on the page. But it seems to be OK in Firefox. See images Chrome: Firefox:
@cigas
I see that the col-md-12 class has returned in the database... Did you recently add or rebuild this question? I don't see it in activecode source anywhere so I'm not sure where it is coming from.
I've not updated anything in weeks as I've been travelling.
This is an old question that I reuse every term. I didn't edit it this term. I do copy assignments from previous terms, but that shouldn't matter as they are the same questions (mostly).
OK, I think I understand a couple more things today than I did a few days ago.
actex
instead of an activecode
I completely forgot about actex
. I've updated so hopefully that fixes the problem for you.col-md-12
class until I get everything updated. Not the end of the world, and can be fixed by rerunning my query.
@bnmnetp In the python books, in the assignment pages and in the preview for assignment problems, the active code buttons run off the page.
But they are fine if you make the page smaller, so I think it might be the wrapper div rather than the ac-actions class styling that is the problem. They're also fine in the book pages in context because the width is narrower. They are also fine in Java books because there are more buttons.