Zoom of images not working in 26.1

Having trouble installing Oxygen XML WebHelp? Got a bug to report? Post it all here.
mariom
Posts: 14
Joined: Tue Jun 25, 2024 3:55 pm

Zoom of images not working in 26.1

Post by mariom »

Zoom of images (for me at least) is not working with version 26.1. I did a test with 25.1 and it is working there with the same content. I tracked it down to the following file:
oxygen-webhelp\app\topic.js
did a compare and there are quite a few differences. I'm not a js person so determining what the changes are, is beyond me.

When I inspect the image in both versions,
the 25.1 version, the image has 3 events
the 26.1 version the image has 2 events, it is missing the common.js event

the img tag in both versions
<img class="- topic/image image zoom" src="../graphics/image.svg" width="240">

My temporary fix will be to overwrite the 26.1 version of the topic.js with the 25.1 version in my workflow.
kr
Marijan (Mario) Madunic
julien_lacour
Posts: 638
Joined: Wed Oct 16, 2019 3:47 pm

Re: Zoom of images not working in 26.1

Post by julien_lacour »

Hello Mario,

Is it possible for you to send us a small sample (with both the topic and the image.svg file) at support@oxygenxml.com for analysis?

If your DITA documents contain some sensitive content, you can randomize it by using Oxygen's Help > Support Tools > Randomize XML text content option.
Note: Create a copy of your DITA structure before doing this operation as the randomizing cannot be reverted.

Regards,
Julien
mariom
Posts: 14
Joined: Tue Jun 25, 2024 3:55 pm

Re: Zoom of images not working in 26.1

Post by mariom »

Will send you something today. Thanks for the quick reply.
Mario
julien_lacour wrote: Tue Feb 11, 2025 12:42 pm Hello Mario,

Is it possible for you to send us a small sample (with both the topic and the image.svg file) at support@oxygenxml.com for analysis?

If your DITA documents contain some sensitive content, you can randomize it by using Oxygen's Help > Support Tools > Randomize XML text content option.
Note: Create a copy of your DITA structure before doing this operation as the randomizing cannot be reverted.

Regards,
Julien
mariom
Posts: 14
Joined: Tue Jun 25, 2024 3:55 pm

Re: Zoom of images not working in 26.1

Post by mariom »

sampleTopic.zip
(1013 Bytes) Downloaded 17 times
julien_lacour wrote: Tue Feb 11, 2025 12:42 pm Here you go
julien_lacour
Posts: 638
Joined: Wed Oct 16, 2019 3:47 pm

Re: Zoom of images not working in 26.1

Post by julien_lacour »

Hello Mario,

I tested using <oXygen/> XML Editor 26.1, build 2024091606 and the zoom is correctly working on the sample you sent me:
scroll.gif
scroll.gif (120.13 KiB) Viewed 453 times
Are you using a custom plugin besides WebHelp Responsive? Or any publishing template containing custom XSLT/JS files?
Could you try to re-run the scenario with clean.output parameter enabled? Is the problem still present?

Regards,
Julien
mariom
Posts: 14
Joined: Tue Jun 25, 2024 3:55 pm

Re: Zoom of images not working in 26.1

Post by mariom »

The publishing is done inside of RWS Tridocs and contains quite a bit of customization. Extension plugins and extension point XSLTs. I believe there are no custom JS. I've extended the customers Oxygen Editor publishing to work in Tridocs. The plugins and xslts all only modify maps and topics before the Webhelp Responsive plugin is run in the DITA-OT publishing workflow.

Will give clean.output a try and get back to you with the results.

Mario
julien_lacour wrote: Fri Feb 14, 2025 12:47 pm Hello Mario,

I tested using <oXygen/> XML Editor 26.1, build 2024091606 and the zoom is correctly working on the sample you sent me:
scroll.gif
Are you using a custom plugin besides WebHelp Responsive? Or any publishing template containing custom XSLT/JS files?
Could you try to re-run the scenario with clean.output parameter enabled? Is the problem still present?

Regards,
Julien
mariom
Posts: 14
Joined: Tue Jun 25, 2024 3:55 pm

Re: Zoom of images not working in 26.1

Post by mariom »

Sorry forgot to mention, I'm using the Publishing Engine
mariom
Posts: 14
Joined: Tue Jun 25, 2024 3:55 pm

Re: Zoom of images not working in 26.1

Post by mariom »

just found custom JS and getting an error around f.offset().left.

Weird thing is, I've found an image that does zoom. Going to do more investigation.
mariom
Posts: 14
Joined: Tue Jun 25, 2024 3:55 pm

Re: Zoom of images not working in 26.1

Post by mariom »

Tested with and without the custom JS, and the zoom does not work in either instance.
julien_lacour
Posts: 638
Joined: Wed Oct 16, 2019 3:47 pm

Re: Zoom of images not working in 26.1

Post by julien_lacour »

Hello,

Could you try to transform your files using the default Oxygen Publishing Engine available on our website. Can you reproduce the problem?

Regards,
Julien
julien_lacour
Posts: 638
Joined: Wed Oct 16, 2019 3:47 pm

Re: Zoom of images not working in 26.1

Post by julien_lacour »

Is it also possible to link the generated HTML topic (containing the image that can't be zoomed in)?

Regards,
Julien
mariom
Posts: 14
Joined: Tue Jun 25, 2024 3:55 pm

Re: Zoom of images not working in 26.1

Post by mariom »

Can't give you that.
I decided just to overwrite the new topic.js with the older one in the publishing workflow, as that one works.
Mario
julien_lacour wrote: Mon Feb 24, 2025 2:46 pm Is it also possible to link the generated HTML topic (containing the image that can't be zoomed in)?

Regards,
Julien
julien_lacour
Posts: 638
Joined: Wed Oct 16, 2019 3:47 pm

Re: Zoom of images not working in 26.1

Post by julien_lacour »

Hello,

Overriding the topic.js isn't recommended as you can get other unexpected behaviors, besides that, if you upgrade Oxygen in the future you my get conflicts between different versions of topic.js.
If you can't give us the partial output containing this image, could you at least try with a default Oxygen Publishing Engine as mentioned in my previous post? Also, as mentioned in my firsts posts, you can randomize the content and just send the generated output for this randomized small ditamap.

Regards,
Julien
mariom
Posts: 14
Joined: Tue Jun 25, 2024 3:55 pm

Re: Zoom of images not working in 26.1

Post by mariom »

When we upgrade, we will have more time to test and fix any issues. Currently I'm moving on. Also found one more issue and will post a new thread about it.
julien_lacour wrote: Mon Mar 03, 2025 2:35 pm Hello,

Overriding the topic.js isn't recommended as you can get other unexpected behaviors, besides that, if you upgrade Oxygen in the future you my get conflicts between different versions of topic.js.
If you can't give us the partial output containing this image, could you at least try with a default Oxygen Publishing Engine as mentioned in my previous post? Also, as mentioned in my firsts posts, you can randomize the content and just send the generated output for this randomized small ditamap.

Regards,
Julien
Post Reply