ui-bootstrap中的手风琴动画与原来的bootstrap不同(手风琴尺寸增大,视觉上"jumps")
Accordion animation in ui-bootstrap is different from the original bootstrap (size of the accordion is increased, visually it "jumps")
bootstrap does not change the size of the full accordion in the process. For some reason in the ui-bootstrap 中的默认动画不是这种情况,当它动画时它的大小奇怪地增加,看起来像 "jumps"(如果你看底部很容易注意到控制)。我认为原始行为更令人赏心悦目,因为 ui-bootstrap 甚至可以在动画时更改滚动条大小。
为什么它的处理方式不同,有没有简单的方法来解决它?例如。通过更改模板。
accordion-group 模板使用 uib-collapse 指令 open/close 面板,请参阅 here 删除 uib-collapse 指令将绕过您看到的一些意外行为,但我我认为您需要管理 closing/opening 面板。
bootstrap does not change the size of the full accordion in the process. For some reason in the ui-bootstrap 中的默认动画不是这种情况,当它动画时它的大小奇怪地增加,看起来像 "jumps"(如果你看底部很容易注意到控制)。我认为原始行为更令人赏心悦目,因为 ui-bootstrap 甚至可以在动画时更改滚动条大小。
为什么它的处理方式不同,有没有简单的方法来解决它?例如。通过更改模板。
accordion-group 模板使用 uib-collapse 指令 open/close 面板,请参阅 here 删除 uib-collapse 指令将绕过您看到的一些意外行为,但我我认为您需要管理 closing/opening 面板。