Twitter Bootstrap当窗口超出窗口时,工具提示无法正确对齐 [英] Twitter Bootstrap Tooltip not aligning correctly when it is going to go outside of window

查看:114
本文介绍了Twitter Bootstrap当窗口超出窗口时,工具提示无法正确对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我有一个与Twitter Bootstrap工具提示相关联的元素,并且工具提示将在浏览器窗口外部重叠,它会尝试在窗口内重新对齐,但它会垂直对齐(即工具提示的顶部对齐现在居中,而不是目标元素)

When I have an element associated with a Twitter Bootstrap Tooltip and the Tooltip will overlap outside the browser window, it tries to realign within the window but it misaligns vertically (i.e. the top alignment of the tooltip is now centred rather than above the target element)

之前有人遇到过这种情况,如果是这样,/ fix / update是什么?

Has anyone encountered this before and if so, what was the work around/fix/update?

推荐答案

是的,其他人曾经遇到过这种情况。例如,问题#4125:工具提示位置不正确问题#3556:窗口边缘附近的工具提示无法正确激活

Yes, others have encountered this before. For example, Issue #4125: Bad position of tooltip or Issue #3556: Tooltips near edge of window don't activate properly.

在后一种情况下,我们建议您使用但仍然可能有用)在工具提示上设置不同的定位,您知道将要靠近窗口边缘。例如, placement:'left' placement:'right'

In the latter it is suggested (rather jestingly - but nevertheless potentially useful) to set a different positioning on tooltips you know are going to be near the window edge. E.g., placement: 'left' or placement: 'right'.

在这一点上似乎没有任何动力来获得这个处理在仓库。

At this point there doesn't seem to be any impetus toward getting this handled in the repo.

这篇关于Twitter Bootstrap当窗口超出窗口时,工具提示无法正确对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆