Bootstrap tooltip causing buttons to jump

前端 未结 2 1162
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 19:45

When I hover over a button and the tooltip appears, the buttons jump. If I disable the tooltip, it does not jump. Additionally, the right button loses the rounded edges. How c

2条回答
  •  面向向阳花
    2021-01-30 20:17

    As Howie said at https://stackoverflow.com/a/14770263/7598367, it's necesary to add the 'container' to tooltip.

    That didn't solve my issue (I had the same problem), it's also necesary to declare at JS file BEFORE the .tooltip() initilization, this way:

    $('[data-toggle=tooltip]').tooltip({container: 'body'});
    $('[data-toggle="tooltip"]').tooltip();
    

    Hope this helps if somebody has the same problem in the future.

提交回复
热议问题