6 Replies Latest reply on Jun 20, 2012 9:09 AM by Aplrh8

    Words in TOC tooltip truncated on Windows Vista

    Tony_pm

      When the text on TOC tooltips in webhelp exceed a certain length, words are truncated. For example, if you have the word "software",  you may have the "s" on one line and "oftware" on the following line.

       

      This does not occur on Windows XP, only on Windows Vista. Has anyone experienced this issue?

       

      I'm using RH7 and the browser is IE7. Operating system Windows Vista.

        • 1. Re: Words in TOC tooltip truncated on Windows Vista
          Willam van Weelden Adobe Community Professional & MVP

          Hi,

           

          I haven't experienced this problem myself, but it seems to me that this problem is an Internet Explorer problem. RoboHelp 7 webhelp uses whthost.js to build the menu. It creates the tooltip bij putting an alt option to the hyperlink, as in the function writeBook (line 256):

           

          sHTML+=");return false;\" title=\""+sName+"\"><img alt=\"Boek\" name=\""+getBId(nIdx)+"\" src=\""+sIcon+"\" border=0 align=\"absmiddle\">";

           

          Sorry for the script, but it gives you insight in the way robo works. Robohelp uses this same method for the entire skin.

           

          This sets a normal alt text for a menu item, similar to the one robo uses for an image. (Yes, it should use title instead of alt, but it doesn't.) Does the same problem occur with images in topics, or do you only have this problem in the menu?

          • 2. Re: Words in TOC tooltip truncated on Windows Vista
            Tony_pm Level 1

            Thanks for your reply. This only happens to me in the TOC. Anyway the images I use do not have a tooltip. It am not sure if it has to do with IE, because it does work correctly on IE 7 o a Windows XP system. The error only occurs in Windows Vista.

            • 3. Re: Words in TOC tooltip truncated on Windows Vista
              Willam van Weelden Adobe Community Professional & MVP

              Hi again,

               

              I tried your problem on some different objects and I get this problem in the menu as well as in regular topics. I think Vista uses a different method to show tooltips (there's now a difference between tooltips and infotips). I'm sorry, but I don't know what's causing this. Sorry, perhaps another member can help.

              • 4. Re: Words in TOC tooltip truncated on Windows Vista
                Tony_pm Level 1

                Thanks for looking into this.

                • 5. Re: Words in TOC tooltip truncated on Windows Vista
                  Aplrh8

                  Hi all,

                   

                  I'm still having this problem when viewing RH9 WebHelp with IE9 on Windows Seven.

                  As anyone found a solution since the original post here? Possibly something to tweak in one of RH .js files?

                  Thanks in advance.

                  • 6. Re: Words in TOC tooltip truncated on Windows Vista
                    Aplrh8 Level 1

                    FYI, apparently a possible workaround is to edit the whthost.js file so that it does not automatically insert non breaking spaces between the words of the book and topic titles in the TOC tooltips.

                     

                     

                    For topics, this is in function writeAnItem: change var sName=_textToHtml(getItemName(nIdx)) to var sName=_textToHtml_nonbsp(getItemName(nIdx))

                     

                    The same goes for function writeBook, for books.

                     

                    As a result, long strings will wrap up in the tooltips, but between words, not in the middle of a word.

                    A side effect is that tooltips that did not previously wrap up in Chrome or Firefox (because they both handle tooltips differently than IE9) may now wrap up.

                     

                    In any case, be sure to backup your original whthost.js file before you make these changes, and also be sure to check the results with different OSs and browsers, to ascertain the workaround will work for your users.