Page 1 of 1
Webhelp Classic - Prevent resizing TOC
Posted: Sat Jul 14, 2018 1:42 am
by mdslup
When generating classic webhelp, it's possible to click and hold the line between the left-side table of content and the right side content, and move the divider left and right.
Is it possible to disable this?
Re: Webhelp Classic - Prevent resizing TOC
Posted: Tue Jul 17, 2018 5:28 pm
by Costin
Hi mdslup,
There is no predefined action or parameter you could use in the transformation scenario to hide / disable the splitter in the WebHelp Classic output.
However, there is a workaround which you could use to disable the splitter bar and make the side TOC fixed.
Specifically, you should edit the "toc_driver.js" file from the
OxygenInstallDir\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\skins\desktop folder and comment the entire if clause after the description:
/**
* @description Split page in leftPane and rightPane
*/
Code: Select all
if ( $("html").attr("dir") != "rtl") {
$("#splitterContainer").splitter({
minAsize: 0,
maxAsize: 600,
splitVertical: true,
A: $('#leftPane'),
B: $('#rightPane'),
closeableto: 0,
animSpeed: 100
});
} else {
$("#splitterContainer").splitter({
minBsize: 0,
maxBsize: 600,
splitVertical: true,
A: $('#rightPane'),
B: $('#leftPane'),
closeableto: 100,
animSpeed: 100
});
}
This will disable the divider.
To re-enable it at a later time, you could just uncomment those block.
Regards,
Costin
Re: Webhelp Classic - Prevent resizing TOC
Posted: Fri Jul 20, 2018 2:13 am
by mdslup
Ah, I didn't think about checking the js file. Thanks!