Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC:

Gap Fill bug in XOT v2 11 years 4 months ago #235

  • bobread
  • bobread's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 1
Hi,

There is a bug in the gap fill in XOT v2 when published usin the Javascript engine. There is no scroll bar in Internet Explorer if the text is too long to fit in the window but there is one when using Firefox. The gap text labels are therefore unavailable in Explorer because you cannot scroll down to them. Also, in full screen mode, the labels sometimes do not return to the bottom of the text if put in the wrong gap. They go instead to where the bottom of the page would have been if viewing at the default window size.

The obvious workaround for this is to restrict the text to fit in the default window but I was using gap fill as a substitute for matching text which has a limit of 5 items. I separated the text into 8 paragraphs which resulted in the text being too long for the deafult window size.

Has anyone else seen this bug?

Please Inloggen or Create an account to join the conversation.

Gap Fill bug in XOT v2 11 years 4 months ago #236

  • JohnSmith
  • JohnSmith's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 397
  • Thank you received: 71
Hi Bob,

I'm not seeing the error in IE10 but I am seeing something strange going on with the panel (the shaded box) size when you have a lot of text... I've now submitted a fix for it but reluctant to send you a new file because there have been other changes since v2 was released that might conflict with what you have at present, unless you update the HTML5 file set.

If you are able to send me your current gapFill.html file then I will patch it for you and return. Alternatively, if you are able to change line 28 (ish) from this:

$panel.height($x_pageHolder.height() - parseInt($x_pageDiv.css("padding-top")) * 2 - parseInt($panel.css("padding-top")) * 2 - 5);

to

$panel.height(Math.max(
$("#targetHolder").height() + $("#labelHolder").height(),
$x_pageHolder.height() - parseInt($x_pageDiv.css("padding-top")) * 2 - parseInt($panel.css("padding-top")) * 2 - 5
));

then i'm hoping that it will fix your issue. Since i'm unable to reproduce at present I can't guarantee it will solve the issue but at least should let us narrow the issue...

You'll find gapFill.html at /modules/xerte/parent_templates/Nottingham/models_html5/gapFill.html

Regards,

John

Please Inloggen or Create an account to join the conversation.

Gap Fill bug in XOT v2 11 years 4 months ago #257

  • bobread
  • bobread's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 1
Hi John,

Many thanks for your reply. Unfortunately, I am a XOT user with no access to the server so I can't do any of ther things you suggested. Thanks for looking into it and submitting the fix though.

Best wishes,

Bob

Please Inloggen or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ronmjultenJohnSmith
Time to create page: 0.044 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search