【问题标题】:popover-append-to-body doesn't workpopover-append-to-body 不起作用
【发布时间】:2017-05-03 14:30:38
【问题描述】:

我遇到了这样的问题:我在 AngularJS 中准备了一个弹出框,由位于表格内的一行中的按钮 (ng-repeat) 触发。它可以工作,但是当我垂直调整窗口大小时我没有问题,如果我向左或向右滚动,弹出窗口不会跟随触发它的按钮。

代码是

        <table ng-table="fondiTable" class="table table-condensed table-bordered table-striped" show-filter="isFiltersVisible">
            <tr ng-repeat="fondo in data">
                <td class="i9font text-center" data-title="'Rapporto'" header-class="'i9header'" filter="{rapporto: 'text'}" sortable="'rapporto'">{{::fondo | formatRapporto}}</td>
                <td class="i9font text-center" data-title="'Cdg'" header-class="'i9header'" filter="{cdg: 'text'}" sortable="'cdg'">{{::fondo.cdg | formatCdg}}</td>
                <td class="i9font text-center" data-title="'Log'" header-class="'i9header'">
                    <button type="button" class="btn btn-default btn-xs" 
                        uib-popover-template="'myPopoverTemplate'" popover-placement="bottom-right" popover-trigger="'outsideClick'" popover-append-to-body="true">
                            <span class="glyphicon glyphicon-info-sign"></span>
                    </button>                               
                </td>
            </tr>
        </table>

我在不同的问题中读到指令“popover-append-to-body = 'true'”可能是我的解决方案......但我没有找到正确的使用方法。 有人能帮我吗?

提前谢谢你

【问题讨论】:

    标签: angularjs angular-ui-bootstrap bootstrap-popover


    【解决方案1】:

    我认为他们将在下一个引导程序版本 (V4) 上解决此问题

    https://github.com/twbs/bootstrap/issues/12799

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-15
      • 2014-12-28
      • 1970-01-01
      • 2011-07-31
      • 1970-01-01
      相关资源
      最近更新 更多