Tooltip Dialog Box Issue

Home Forums Classic DFFS Tooltip Dialog Box Issue

Viewing 5 reply threads
  • Author
    Posts
    • #11122
      Jeffery McElroy
      Participant

        I have DFFS installed in SP 2013 and am having issues with the tooltip dialog box not appearing next to the field it is related to on both hover and click. I reviewed this previous post and comments https://spjsblog.com/forums/topic/tooltip-position-issue/ but I am either not applying the solution correctly, or it is not working in SP 2013. Please advise. Thanks!

      • #11144
        Alexander Bautz
        Keymaster

          Hi,
          Which version of DFFS are you using? Is the issue related to scrolling down in a form?

          Alexander

        • #11157
          Jeffery McElroy
          Participant

            I am using v4.366. Yes, the issue is related to scrolling down in a form. When I hover or click the tooltip icon, the tooltip box does not appear next to the field it is associated with, but rather further down on the page after I scroll down.

          • #11179
            Alexander Bautz
            Keymaster

              Hi,
              Can you add a screenshot of the page (mask the URL) so I can see how your page layout looks. Are you aware of any master page changes?

              If you feel up to it, add this function to the custom js textarea to override the default function (please note that this snippet is the original function, and you must modify it locally to see if you can identify the problem):

              spjs.dffs.showTooltip = function(elm){
              	$("#tooltipDlgHeader").hide();
              	var id = spjs.$(elm).attr('fin'), p = spjs.$(elm).position(), s = spjs.$(window).scrollTop(), lc = {};
              	if(spjs.dffs.data.isSP13){
              		if(spjs.$("#s4-workspace").length > 0){
              			s += spjs.$("#s4-workspace").scrollTop();
              		}
              		p.top += s;
              	}
              	spjs.$("#tooltipHolderInner").html("");
              	if(spjs.dffs.data.isSP07 && !spjs.dffs.data.bOK){
              		spjs.$("#tooltipHolderInner").css({"width":"550px"});
              	}		
              	spjs.$("#tooltipPlaceholder").attr("pin","0").css({"position":"absolute","left":p.left+25,"top":p.top+15});
              	if(spjs.dffs.fields[id]!==undefined){
              		spjs.$("#tooltipPlaceholder").appendTo(spjs.$(elm).parent());
              		spjs.$("#tooltipHolderInner").html(spjs.dffs.data.tooltipObj[id]);
              		$("#tooltipPlaceholder").css({"display":"inline","position":"absolute"}).stop(true,true).fadeIn(200);
              		// Check left pos
              		if(!spjs.dffs.data.isSP07){
              			lc.l = spjs.$("#tooltipPlaceholder").offset().left;
              			lc.tw = spjs.$("#tooltipPlaceholder").width();
              			lc.ww = spjs.$(window).width();
              			if(lc.l + lc.tw > lc.ww){
              				p.left -= (lc.l + lc.tw) - lc.ww;
              				spjs.$("#tooltipPlaceholder").css("left",p.left);
              			}
              		}
              	}
              }

              Alexander

            • #11224
              Jeffery McElroy
              Participant

                Hi,

                I actually changed the “Site Look” and the issue resolved itself.

                Thanks.

              • #11235
                Alexander Bautz
                Keymaster

                  I’m glad you figured it out.

                  Alexander

              Viewing 5 reply threads
              • You must be logged in to reply to this topic.