嵌套的手风琴在ui bootstrap中不能正确扩展

时间:2015-10-21 15:22:53

标签: angular-ui-bootstrap

当手风琴嵌套在另一个手风琴中时,儿童手风琴不会扩展其父级的高度。 请有人告诉我,我该如何解决它?

我有以下代码:

    <uib-accordion>
<uib-accordion-group is-open="status.open"> 
        <uib-accordion-heading> 
            Parent Accordion <i class="pull-left glyphicon" ng-class="{'glyphicon glyphicon-minus': status.open, 'glyphicon glyphicon-plus': !status.open}"></i>
       </uib-accordion-heading>
        <uib-accordion> 
            <uib-accordion-group is-open="nest1.open"> 
                <uib-accordion-heading> 
                    Nested Accordion 1 <i class="pull-left glyphicon" ng-class="{'glyphicon glyphicon-minus': nest1.open, 'glyphicon glyphicon-plus': !nest1.open}"></i>
                </uib-accordion-heading>
            </uib-accordion-group>
            <uib-accordion-group is-open="nest2.open"> 
                <uib-accordion-heading> 
                    Nested Accordion 2 <i class="pull-left glyphicon" ng-class="{'glyphicon glyphicon-minus': nest2.open, 'glyphicon glyphicon-plus': !nest2.open}"></i>
                </uib-accordion-heading>
            </uib-accordion-group>
</uib-accordion>
    </uib-accordion-group>
</uib-accordion>

谢谢。

1 个答案:

答案 0 :(得分:1)

此问题已在0.14.3中修复。

https://github.com/angular-ui/bootstrap/issues/4561