bootstrap-popover

Bootstrap 4: Why popover inside scrollable dropdown doesn't show?

家住魔仙堡 提交于 2019-11-30 22:16:54
I want this to work just like Bootstrap 3. When I have a dropdown with scrollbar on hover popover, and I think there is a problem with Bootstrap 4. I need overflow:hidden; to make the dropdown scroll, but the popover is hidden too. I tried to use container:'body' but it didn't work. $(document).ready(function() { $('[data-toggle="popover"]').popover({ html: true, container: 'body' }); }); .dropdown-menu{ height: 150px; overflow: hidden; overflow-y: auto } <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link

Bootstrap 4: Why popover inside scrollable dropdown doesn't show?

删除回忆录丶 提交于 2019-11-30 17:59:26
问题 I want this to work just like Bootstrap 3. When I have a dropdown with scrollbar on hover popover, and I think there is a problem with Bootstrap 4. I need overflow:hidden; to make the dropdown scroll, but the popover is hidden too. I tried to use container:'body' but it didn't work. $(document).ready(function() { $('[data-toggle="popover"]').popover({ html: true, container: 'body' }); }); .dropdown-menu{ height: 150px; overflow: hidden; overflow-y: auto } <!DOCTYPE html> <html> <head> <title

How can you ensure twitter bootstrap popover windows are visible?

£可爱£侵袭症+ 提交于 2019-11-29 21:49:17
Does anyone know of an extension to the popover component of twitter bootstrap that dynamically changes the placement option to ensure that the popover displays on the screen? The placement can be a function instead of a string. An example of auto placement written by fat and then ported to the most recent version of bootstrap by wleeper is in one of the github issues on the project here: https://github.com/twitter/bootstrap/issues/345 Here is the result of compiling the CoffeeScript to JavaScript: $("a[rel=popover]").popover({ placement: function(tip, element) { var $element, above,