Twitter Bootstrap Tooltip not aligning correctly when it is going to go outside of window

后端 未结 2 1106
栀梦
栀梦 2021-01-18 01:22

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 misa

2条回答
  •  暖寄归人
    2021-01-18 01:30

    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.

    In the former it is suggested to either disable text wrapping or set a fixed height.

    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.

提交回复
热议问题