Report any technical problems you discover and discuss solutions.

Formatting of images

  • r.j.
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 4 months ago - 10 years 4 months ago #3632 by r.j.
Formatting of images was created by r.j.
Hi,

Very happy with xerte (as always).
One problem we experience however is the image size in some frames:
[strike]Hotspot image [/strike](not to be confused with the hotspot connector) in interactivity.
[strike]Advanced image[/strike]
Annoted diagram

Sometimes with screen shots this delivers very small images (where you would need just a larger image to be able to read anything).

Would it be possible to add an optional property: "image size" where of the image in question can be adjusted in percentages of the total page width ( was not able to do this with plain css).
Last edit: 10 years 4 months ago by r.j..

Please Log in or Create an account to join the conversation.

  • r.j.
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 4 months ago - 10 years 4 months ago #3644 by r.j.
Replied by r.j. on topic Formatting of images
Update: The problem only occurs with Annotated diagrams (not Hotspot and advanced image). sorry!
Last edit: 10 years 4 months ago by r.j..

Please Log in or Create an account to join the conversation.

  • r.j.
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 3 months ago - 10 years 3 months ago #3647 by r.j.
Replied by r.j. on topic Formatting of images
Solved, the size of the annotated diagram is static (like set values).
I didn't really have time to solve stuff so i fixed this way:

In the file: <xerte install dir>/modules/xerte/parent_templates/Nottingham/models_html5/annotatedDiagram.html

Below line 85 I added this:
Code:
imgMaxW = $x_pageDiv.width() / 2; imgMaxH = $x_pageHolder.height() - parseInt($x_pageDiv.css("padding-top")) * 2;

Yes, it is still not responsive, but it does what i need it to do.
Last edit: 10 years 3 months ago by r.j..

Please Log in or Create an account to join the conversation.

Moderators: ronmjultenJohnSmith
Time to create page: 0.232 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo