Supporting each other

Community forums

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

TOPIC:

Formatting of images 8 years 2 weeks ago #3632

  • r.j.
  • r.j.'s Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 25
  • Thank you received: 0
Hi,

Very happy with xerte (as always).
One problem we experience however is the image size in some frames:
Hotspot image (not to be confused with the hotspot connector) in interactivity.
Advanced image
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).

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

Last edit: by r.j..

Formatting of images 8 years 1 week ago #3644

  • r.j.
  • r.j.'s Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 25
  • Thank you received: 0
Update: The problem only occurs with Annotated diagrams (not Hotspot and advanced image). sorry!

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

Last edit: by r.j..

Formatting of images 8 years 1 week ago #3647

  • r.j.
  • r.j.'s Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 25
  • Thank you received: 0
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:
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.

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

Last edit: by r.j..
  • Page:
  • 1
Moderators: ronmjultenJohnSmith
Time to create page: 0.049 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search