Javascript工具提示意外文本换行(Tooltipster)

时间:2022-01-01 22:20:02

I'm using the javascript library tooltipster and I don't know why the text is wrapping in the tooltip box.

我正在使用javascript库工具提示器,我不知道为什么文本包装在工具提示框中。

Javascript工具提示意外文本换行(Tooltipster)

HTML:

<div id="spanBackground" style="background: rgba(238, 0, 140, 120);" 
 class="tooltipjs" title="Touch to interact">

Javascript:

function AnimateUpDown(toolTipElement) {
        $(toolTipElement).animate({ top: '+=20' }, 1000);
        $(toolTipElement).animate({ top: '-=20' }, 1000, AnimateUpDown);
    }

    $(document).ready(function () {
        $('.tooltipjs')
            .tooltipster(
            {
                animation: 'grow',
                arrow: false,
                //Custom trigger effectively disables the default onhover trigger
                trigger: 'custom',
                functionReady: function (instance, helper) {
                    AnimateUpDown(helper.tooltip);
                }

            });
        toolTipOpenAndClose();
    });

1 个解决方案

#1


0  

There is an open issue about that, that's the first place to check. Should be fixed in a few days. https://github.com/iamceege/tooltipster/issues/600

有一个公开的问题,这是第一个检查的地方。应该在几天内修好。 https://github.com/iamceege/tooltipster/issues/600

#1


0  

There is an open issue about that, that's the first place to check. Should be fixed in a few days. https://github.com/iamceege/tooltipster/issues/600

有一个公开的问题,这是第一个检查的地方。应该在几天内修好。 https://github.com/iamceege/tooltipster/issues/600